mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
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:
parent
10116d40d8
commit
a6cd0cf0f5
4 changed files with 17 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue