(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.
This commit is contained in:
Victor Stinner 2011-05-02 01:11:33 +02:00
commit 8108e96bc8
4 changed files with 17 additions and 1 deletions

View file

@ -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):