Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 94fe10f

Browse files
committed
it seems that /dev/tty is seekable on Solaris, too
1 parent 22b85b3 commit 94fe10f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/test/test_fileio.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ def testAbles(self):
137137
self.assertEquals(f.readable(), False)
138138
self.assertEquals(f.writable(), True)
139139
if sys.platform != "darwin" and \
140-
not sys.platform.startswith('freebsd'):
140+
not sys.platform.startswith('freebsd') and \
141+
not sys.platform.startswith('sunos'):
141142
# Somehow /dev/tty appears seekable on some BSDs
142143
self.assertEquals(f.seekable(), False)
143144
self.assertEquals(f.isatty(), True)

0 commit comments

Comments
 (0)