====================================================================== FAIL: testAbles (test.test_fileio.COtherFileTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/opt/freeware/src/packages/BUILD/Python-3.5.2/64bit/Lib/test/test_fileio.py", line 382, in testAbles self.assertEqual(f.seekable(), False) AssertionError: True != False ====================================================================== FAIL: testAbles (test.test_fileio.PyOtherFileTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/opt/freeware/src/packages/BUILD/Python-3.5.2/64bit/Lib/test/test_fileio.py", line 382, in testAbles self.assertEqual(f.seekable(), False) AssertionError: True != False /dev/tty is seakable on AIX, like on some other Unix on wich this assertion is already skipped (macOS, BSD, SunOS). The attached patch adds adds AIX to the list of platform on wich the assertion should be skipped.
You should be able to provide a tuple of prefixes (I can easily change to that change when I commit): not sys.platform.startswith(('sunos', 'aix')) However I noticed the AIX buildbots are all passing test_fileio. I wonder what the difference is? Maybe the buildbot process doesn’t have a /dev/tty and skips the test. Would this also be needed on 2.7? The test seems to be called testAblesOnTTY() there.
Sorry for the late reply. I did some additional testing, and I can confirm that this assertion should also be skipped in Python 2.7 on AIX. And the test does not fail when run without a tty, so we can assume that this is what happens on the builbots.