diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-02-22 22:36:07 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-02-22 22:36:07 (GMT) |
commit | cc76a410e22b87841acc83610e8a9954fc2dd82e (patch) | |
tree | 2e70e785c831a2409804509ad6741c5fb29001f7 /Lib/test/test_zlib.py | |
parent | d8878ccf132b7594ab5695f5968446124d142f24 (diff) | |
download | cpython-cc76a410e22b87841acc83610e8a9954fc2dd82e.zip cpython-cc76a410e22b87841acc83610e8a9954fc2dd82e.tar.gz cpython-cc76a410e22b87841acc83610e8a9954fc2dd82e.tar.bz2 |
Merged revisions 88511 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88511 | antoine.pitrou | 2011-02-22 22:42:56 +0100 (mar., 22 févr. 2011) | 4 lines
Issue #11277: finally fix Snow Leopard crash following r88460.
(probably an OS-related issue with mmap)
........
Diffstat (limited to 'Lib/test/test_zlib.py')
-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 9aafffa..5d38d97 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") - f.flush() + with open(support.TESTFN, "rb") as f: self.mapping = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ) def tearDown(self): |