projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfc13e0
)
Issue #26926: Skip some test_io tests on platforms without large file support
author
Xavier de Gaye
<xdegaye@users.sourceforge.net>
Thu, 17 Nov 2016 08:20:28 +0000
(09:20 +0100)
committer
Xavier de Gaye
<xdegaye@users.sourceforge.net>
Thu, 17 Nov 2016 08:20:28 +0000
(09:20 +0100)
Lib/test/test_io.py
patch
|
blob
|
history
diff --git
a/Lib/test/test_io.py
b/Lib/test/test_io.py
index 8a2111cbd71c6285301d1349b6b3b313ca3d5f53..aaa64eadffe1ea339fea217bc65eed63f8bf8d8b 100644
(file)
--- 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)