mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Issue #26926: Merge 3.6
This commit is contained in:
commit
ac05f88582
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue