Issue #26927: Fixed test_mmap on platforms with 32-bit off_t (like Android).
Patch by Xavier de Gaye.
This commit is contained in:
parent
5917f973ac
commit
05d3921cc1
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue