[Python-3000-checkins] r56984 - python/branches/py3k/Lib/test/test_fileio.py
hyeshik.chang
python-3000-checkins at python.org
Mon Aug 13 15:21:34 CEST 2007
Author: hyeshik.chang
Date: Mon Aug 13 15:21:33 2007
New Revision: 56984
Modified:
python/branches/py3k/Lib/test/test_fileio.py
Log:
Fix a failing test on FreeBSD: ttys are seekable in FreeBSD, too.
Modified: python/branches/py3k/Lib/test/test_fileio.py
==============================================================================
--- python/branches/py3k/Lib/test/test_fileio.py (original)
+++ python/branches/py3k/Lib/test/test_fileio.py Mon Aug 13 15:21:33 2007
@@ -136,8 +136,9 @@
f = _fileio._FileIO("/dev/tty", "a")
self.assertEquals(f.readable(), False)
self.assertEquals(f.writable(), True)
- if sys.platform != "darwin":
- # Somehow /dev/tty appears seekable on OSX
+ if sys.platform != "darwin" and \
+ not sys.platform.startswith('freebsd'):
+ # Somehow /dev/tty appears seekable on some BSDs
self.assertEquals(f.seekable(), False)
self.assertEquals(f.isatty(), True)
f.close()
More information about the Python-3000-checkins
mailing list