summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-02-22 21:42:56 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-02-22 21:42:56 (GMT)
commit543b7f3ee90b089d1dea485c36a12ff26c8c55e1 (patch)
tree6db485107c783bde9f0f796fd3edce6735d6676b /Lib
parent292ee5dc4398a52ac5fbb2b46eaf888e4fa0a2bb (diff)
downloadcpython-543b7f3ee90b089d1dea485c36a12ff26c8c55e1.zip
cpython-543b7f3ee90b089d1dea485c36a12ff26c8c55e1.tar.gz
cpython-543b7f3ee90b089d1dea485c36a12ff26c8c55e1.tar.bz2
Issue #11277: finally fix Snow Leopard crash following r88460.
(probably an OS-related issue with mmap)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_zlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_zlib.py b/Lib/test/test_zlib.py
index 9aafffa..5d38d97 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):