From: Antoine Pitrou Date: Tue, 22 Feb 2011 21:42:56 +0000 (+0000) Subject: Issue #11277: finally fix Snow Leopard crash following r88460. X-Git-Tag: v3.3.0a1~3116 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=543b7f3ee90b089d1dea485c36a12ff26c8c55e1;p=python Issue #11277: finally fix Snow Leopard crash following r88460. (probably an OS-related issue with mmap) --- diff --git a/Lib/test/test_zlib.py b/Lib/test/test_zlib.py index 9aafffa8d2..5d38d97836 100644 --- a/Lib/test/test_zlib.py +++ b/Lib/test/test_zlib.py @@ -70,7 +70,7 @@ class ChecksumBigBufferTestCase(unittest.TestCase): with open(support.TESTFN, "wb+") as f: f.seek(_4G) f.write(b"asdf") - f.flush() + with open(support.TESTFN, "rb") as f: self.mapping = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ) def tearDown(self):