]> granicus.if.org Git - python/commitdiff
Merged revisions 88511 via svnmerge from
authorAntoine Pitrou <solipsis@pitrou.net>
Tue, 22 Feb 2011 22:36:07 +0000 (22:36 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Tue, 22 Feb 2011 22:36:07 +0000 (22:36 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r88511 | antoine.pitrou | 2011-02-22 22:42:56 +0100 (mar., 22 févr. 2011) | 4 lines

  Issue #11277: finally fix Snow Leopard crash following r88460.
  (probably an OS-related issue with mmap)
........

Lib/test/test_zlib.py

index 9aafffa8d21a9aa14c24161401aa3d0c9661c088..5d38d97836af0bea62ed2f05d80d68261733b64a 100644 (file)
@@ -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):