Commit 8ec11752 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Issue #26927: Fixed test_mmap on platforms with 32-bit off_t (like Android).

Patch by Xavier de Gaye.
parents 9fa149dd 05d3921c
......@@ -738,7 +738,7 @@ class LargeMmapTests(unittest.TestCase):
f.seek(num_zeroes)
f.write(tail)
f.flush()
except (OSError, OverflowError):
except (OSError, OverflowError, ValueError):
try:
f.close()
except (OSError, OverflowError):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment