Issue #26926: Skip some test_io tests on platforms without large file support

This commit is contained in:
Xavier de Gaye 2016-11-17 09:20:28 +01:00
parent dfc13e069a
commit 877f036950
1 changed files with 4 additions and 1 deletions

View File

@ -350,7 +350,10 @@ class IOTest(unittest.TestCase):
def large_file_ops(self, f):
assert f.readable()
assert f.writable()
try:
self.assertEqual(f.seek(self.LARGE), self.LARGE)
except (OverflowError, ValueError):
self.skipTest("no largefile support")
self.assertEqual(f.tell(), self.LARGE)
self.assertEqual(f.write(b"xxx"), 3)
self.assertEqual(f.tell(), self.LARGE + 3)