From a6cd0cf0f5530f1e96114927b2824f6dc61f1bbd Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 2 May 2011 01:05:37 +0200 Subject: Issue #11277: mmap calls fcntl(fd, F_FULLFSYNC) on Mac OS X to get around a mmap bug with sparse files. Patch written by Steffen Daode Nurpmeso. --- Lib/test/test_zlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/test/test_zlib.py') diff --git a/Lib/test/test_zlib.py b/Lib/test/test_zlib.py index 48ac40a4f7..7593c064b0 100644 --- a/Lib/test/test_zlib.py +++ b/Lib/test/test_zlib.py @@ -74,7 +74,7 @@ class ChecksumBigBufferTestCase(unittest.TestCase): with open(support.TESTFN, "wb+") as f: f.seek(_4G) f.write(b"asdf") - with open(support.TESTFN, "rb") as f: + f.flush() self.mapping = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ) def tearDown(self): -- cgit v1.2.1