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:41:48 +03:00
parent 5917f973ac
commit 05d3921cc1
1 changed files with 1 additions and 1 deletions

View File

@ -730,7 +730,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):