Kaydet (Commit) caf871ad authored tarafından Hye-Shik Chang's avatar Hye-Shik Chang

Fix a failing test on FreeBSD: ttys are seekable in FreeBSD, too.

üst 49d90bc9
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment