it seems that /dev/tty is seekable on Solaris, too

This commit is contained in:
Benjamin Peterson 2008-07-17 23:27:26 +00:00
parent 22b85b3ef8
commit 94fe10ff75
1 changed files with 2 additions and 1 deletions

View File

@ -137,7 +137,8 @@ class OtherFileTests(unittest.TestCase):
self.assertEquals(f.readable(), False)
self.assertEquals(f.writable(), True)
if sys.platform != "darwin" and \
not sys.platform.startswith('freebsd'):
not sys.platform.startswith('freebsd') and \
not sys.platform.startswith('sunos'):
# Somehow /dev/tty appears seekable on some BSDs
self.assertEquals(f.seekable(), False)
self.assertEquals(f.isatty(), True)