From: Serhiy Storchaka Date: Mon, 23 May 2016 05:41:48 +0000 (+0300) Subject: Issue #26927: Fixed test_mmap on platforms with 32-bit off_t (like Android). X-Git-Tag: v3.5.2rc1~122 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=05d3921cc138ced6b5988c027275a601a6c9fb84;p=thirdparty%2FPython%2Fcpython.git Issue #26927: Fixed test_mmap on platforms with 32-bit off_t (like Android). Patch by Xavier de Gaye. --- diff --git a/Lib/test/test_mmap.py b/Lib/test/test_mmap.py index 0f25742c486d..b365d8486529 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):