diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-01 23:11:33 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-01 23:11:33 (GMT) |
commit | 8108e96bc811eeb61594e398848d25cbe9efbffe (patch) | |
tree | 31ca95d076488661f741776f28d7d1b4ebd711c4 /Lib | |
parent | cee01bf18faa9eb95b93c24711cbebbe36d91336 (diff) | |
parent | a6cd0cf0f5530f1e96114927b2824f6dc61f1bbd (diff) | |
download | cpython-8108e96bc811eeb61594e398848d25cbe9efbffe.zip cpython-8108e96bc811eeb61594e398848d25cbe9efbffe.tar.gz cpython-8108e96bc811eeb61594e398848d25cbe9efbffe.tar.bz2 |
(Merge 3.1) Issue #11277: mmap.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')
-rw-r--r-- | Lib/test/test_zlib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_zlib.py b/Lib/test/test_zlib.py index 5d38d97..9aafffa 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") - with open(support.TESTFN, "rb") as f: + f.flush() self.mapping = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ) def tearDown(self): |