diff options
author | Xavier de Gaye <xdegaye@users.sourceforge.net> | 2016-11-17 08:22:43 (GMT) |
---|---|---|
committer | Xavier de Gaye <xdegaye@users.sourceforge.net> | 2016-11-17 08:22:43 (GMT) |
commit | ac05f885824e31c8ca51ac8f16efa23b70b3a609 (patch) | |
tree | 7048042feb0fb4555440f7a1dcbd13c71fdd6065 /Lib | |
parent | 56758354c8dec21792aeddb9ade4ea5072a7e1a2 (diff) | |
parent | 877f03695081c3ac0d99f9167b3c6ebabe8c04e8 (diff) | |
download | cpython-ac05f885824e31c8ca51ac8f16efa23b70b3a609.zip cpython-ac05f885824e31c8ca51ac8f16efa23b70b3a609.tar.gz cpython-ac05f885824e31c8ca51ac8f16efa23b70b3a609.tar.bz2 |
Issue #26926: Merge 3.6
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_io.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py index 877d3b5..fc68b09 100644 --- a/Lib/test/test_io.py +++ b/Lib/test/test_io.py @@ -350,7 +350,10 @@ class IOTest(unittest.TestCase): def large_file_ops(self, f): assert f.readable() assert f.writable() - self.assertEqual(f.seek(self.LARGE), self.LARGE) + 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) |