summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-05-23 05:41:48 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-05-23 05:41:48 (GMT)
commit05d3921cc138ced6b5988c027275a601a6c9fb84 (patch)
treec124a27b0f64e07aab1b04ffeab8f772e4e5d40f
parent5917f973ac72c24570b340ce22b41c116036cdcb (diff)
downloadcpython-05d3921cc138ced6b5988c027275a601a6c9fb84.zip
cpython-05d3921cc138ced6b5988c027275a601a6c9fb84.tar.gz
cpython-05d3921cc138ced6b5988c027275a601a6c9fb84.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 0f25742..b365d84 100644
--- a/Lib/test/test_mmap.py
+++ b/Lib/test/test_mmap.py
@@ -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):