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

Patch by Xavier de Gaye.
This commit is contained in:
Serhiy Storchaka 2016-05-23 08:42:09 +03:00
commit 8ec1175204

View file

@ -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):