Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 543b7f3

Browse files
committed
Issue #11277: finally fix Snow Leopard crash following r88460.
(probably an OS-related issue with mmap)
1 parent 292ee5d commit 543b7f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_zlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def setUp(self):
7070
with open(support.TESTFN, "wb+") as f:
7171
f.seek(_4G)
7272
f.write(b"asdf")
73-
f.flush()
73+
with open(support.TESTFN, "rb") as f:
7474
self.mapping = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ)
7575

7676
def tearDown(self):

0 commit comments

Comments
 (0)