]> granicus.if.org Git - python/commitdiff
it seems that /dev/tty is seekable on Solaris, too
authorBenjamin Peterson <benjamin@python.org>
Thu, 17 Jul 2008 23:27:26 +0000 (23:27 +0000)
committerBenjamin Peterson <benjamin@python.org>
Thu, 17 Jul 2008 23:27:26 +0000 (23:27 +0000)
Lib/test/test_fileio.py

index c94ceafdeafad679dfec8823868941bab4c4d771..12b8e7da3186c36e6b8457082ed4ae049a1e028d 100644 (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)