21792076 Python 3.4 regression test test_mmap fails in large file tests
authorJohn Beck <John.Beck@Oracle.COM>
Tue, 08 Sep 2015 13:44:38 -0700
changeset 4844 ef6acf67d02a
parent 4843 a28c7fb418c9
child 4845 c702a8e89152
21792076 Python 3.4 regression test test_mmap fails in large file tests
components/python/python34/patches/26-test_mmap.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/python/python34/patches/26-test_mmap.patch	Tue Sep 08 13:44:38 2015 -0700
@@ -0,0 +1,19 @@
+This patch has been submitted upstream, and accepted; it should no longer be
+needed with the next Python version upgrade:
+
+http://bugs.python.org/issue25004
+
+--- Python-3.4.3/Lib/test/test_mmap.py.~1~	2015-08-28 12:40:08.000000000 -0700
++++ Python-3.4.3/Lib/test/test_mmap.py	2015-09-04 14:51:47.034993552 -0700
+@@ -727,7 +727,10 @@
+             f.write(tail)
+             f.flush()
+         except (OSError, OverflowError):
+-            f.close()
++            try:
++                f.close()
++            except (OSError, OverflowError):
++                pass
+             raise unittest.SkipTest("filesystem does not have largefile support")
+         return f
+