summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-05-23 05:42:09 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-05-23 05:42:09 (GMT)
commit8ec11752046d19231c4a230e741ddc5b35e87218 (patch)
tree91b43669f0478c68a29f779946ab53a9c396e4bd
parent9fa149dd24a8ce18a24d3ab597c2ff34912760c7 (diff)
parent05d3921cc138ced6b5988c027275a601a6c9fb84 (diff)
downloadcpython-8ec11752046d19231c4a230e741ddc5b35e87218.zip
cpython-8ec11752046d19231c4a230e741ddc5b35e87218.tar.gz
cpython-8ec11752046d19231c4a230e741ddc5b35e87218.tar.bz2
Issue #26927: Fixed test_mmap on platforms with 32-bit off_t (like Android).
Patch by Xavier de Gaye.
-rw-r--r--Lib/test/test_mmap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_mmap.py b/Lib/test/test_mmap.py
index be2e65a..bbb4070 100644
--- a/Lib/test/test_mmap.py
+++ b/Lib/test/test_mmap.py
@@ -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):