summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_fileio.py
diff options
context:
space:
mode:
authorHye-Shik Chang <hyeshik@gmail.com>2007-08-13 13:21:33 (GMT)
committerHye-Shik Chang <hyeshik@gmail.com>2007-08-13 13:21:33 (GMT)
commitcaf871ad322bde58da34494cbef18007e298cf00 (patch)
tree17b149c030b613e48e4ef2999d5d05370380ca10 /Lib/test/test_fileio.py
parent49d90bc9ef6fb92f86c29dcda8abf67adbad35b9 (diff)
downloadcpython-caf871ad322bde58da34494cbef18007e298cf00.zip
cpython-caf871ad322bde58da34494cbef18007e298cf00.tar.gz
cpython-caf871ad322bde58da34494cbef18007e298cf00.tar.bz2
Fix a failing test on FreeBSD: ttys are seekable in FreeBSD, too.
Diffstat (limited to 'Lib/test/test_fileio.py')
-rw-r--r--Lib/test/test_fileio.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_fileio.py b/Lib/test/test_fileio.py
index 8fd77e5..4028927 100644
--- a/Lib/test/test_fileio.py
+++ b/Lib/test/test_fileio.py
@@ -136,8 +136,9 @@ class OtherFileTests(unittest.TestCase):
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()