[issue11215] test_fileio error on AIX
STINNER Victor
report at bugs.python.org
Wed Sep 30 18:43:40 CEST 2015
STINNER Victor added the comment:
I see that the test pass on AIX, on Python 2.7 and Python 3.6 buildbots, so I close the issue.
This issue was opened 4 years ago. The test is now skipped on many platforms:
if sys.platform != "win32":
try:
f = self.FileIO("/dev/tty", "a")
except OSError:
# When run in a cron job there just aren't any
# ttys, so skip the test. This also handles other
# OS'es that don't support /dev/tty.
pass
else:
self.assertEqual(f.readable(), False)
self.assertEqual(f.writable(), True)
if sys.platform != "darwin" and \
'bsd' not in sys.platform and \
not sys.platform.startswith('sunos'):
# Somehow /dev/tty appears seekable on some BSDs
self.assertEqual(f.seekable(), False)
self.assertEqual(f.isatty(), True)
f.close()
(I'm not 100% sure that the line was this f.seekable() check.)
----------
nosy: +haypo
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11215>
_______________________________________
More information about the Python-bugs-list
mailing list