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.
This commit is contained in:
Victor Stinner 2011-05-02 01:05:37 +02:00
parent 10116d40d8
commit a6cd0cf0f5
4 changed files with 17 additions and 1 deletions

View file

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