[issue11277] test_zlib crashes under Snow Leopard buildbot
Antoine Pitrou
report at bugs.python.org
Tue Feb 22 17:37:28 CET 2011
Antoine Pitrou <pitrou at free.fr> added the comment:
Out of curiosity, could you try the following patch?
Index: Lib/test/test_zlib.py
===================================================================
--- Lib/test/test_zlib.py (révision 88500)
+++ Lib/test/test_zlib.py (copie de travail)
@@ -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):
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11277>
_______________________________________
More information about the Python-bugs-list
mailing list