Fix a failing test on FreeBSD: ttys are seekable in FreeBSD, too.
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 @@
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()