[Python-checkins] r88510 - python/branches/issue10276-snowleopard/Lib/test/test_zlib.py
antoine.pitrou
python-checkins at python.org
Tue Feb 22 21:29:49 CET 2011
Author: antoine.pitrou
Date: Tue Feb 22 21:29:49 2011
New Revision: 88510
Log:
Another try at fixing /working around Snow Leopard crash
Modified:
python/branches/issue10276-snowleopard/Lib/test/test_zlib.py
Modified: python/branches/issue10276-snowleopard/Lib/test/test_zlib.py
==============================================================================
--- python/branches/issue10276-snowleopard/Lib/test/test_zlib.py (original)
+++ python/branches/issue10276-snowleopard/Lib/test/test_zlib.py Tue Feb 22 21:29:49 2011
@@ -70,7 +70,7 @@
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):
More information about the Python-checkins
mailing list