summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-05-01 23:05:37 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-05-01 23:05:37 (GMT)
commita6cd0cf0f5530f1e96114927b2824f6dc61f1bbd (patch)
treeccd842682a0b4893d38d5b4e3ac44fa06a17c6ae /Lib/test
parent10116d40d8794825c42b2440524411cd406d1f93 (diff)
downloadcpython-a6cd0cf0f5530f1e96114927b2824f6dc61f1bbd.zip
cpython-a6cd0cf0f5530f1e96114927b2824f6dc61f1bbd.tar.gz
cpython-a6cd0cf0f5530f1e96114927b2824f6dc61f1bbd.tar.bz2
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.
Diffstat (limited to 'Lib/test')
-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 48ac40a..7593c06 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):