From 05d3921cc138ced6b5988c027275a601a6c9fb84 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Mon, 23 May 2016 08:41:48 +0300 Subject: Issue #26927: Fixed test_mmap on platforms with 32-bit off_t (like Android). Patch by Xavier de Gaye. --- Lib/test/test_mmap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit v0.12