summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_io.py
diff options
context:
space:
mode:
authorXavier de Gaye <xdegaye@users.sourceforge.net>2016-11-17 08:20:28 (GMT)
committerXavier de Gaye <xdegaye@users.sourceforge.net>2016-11-17 08:20:28 (GMT)
commit877f03695081c3ac0d99f9167b3c6ebabe8c04e8 (patch)
tree514843de1907d7a6167c7345e4d2cfcecc896a5d /Lib/test/test_io.py
parentdfc13e069a0ff2dedce0096a85335755aecec4a3 (diff)
downloadcpython-877f03695081c3ac0d99f9167b3c6ebabe8c04e8.zip
cpython-877f03695081c3ac0d99f9167b3c6ebabe8c04e8.tar.gz
cpython-877f03695081c3ac0d99f9167b3c6ebabe8c04e8.tar.bz2
Issue #26926: Skip some test_io tests on platforms without large file support
Diffstat (limited to 'Lib/test/test_io.py')
-rw-r--r--Lib/test/test_io.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py
index 8a2111c..aaa64ea 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)