[pypy-svn] r32410 - pypy/dist/pypy/module/mmap/test
arigo at codespeak.net
arigo at codespeak.net
Sun Sep 17 13:36:28 CEST 2006
Author: arigo
Date: Sun Sep 17 13:36:25 2006
New Revision: 32410
Modified:
pypy/dist/pypy/module/mmap/test/test_mmap.py
Log:
Bad style copied from the CPython stdlib.
Modified: pypy/dist/pypy/module/mmap/test/test_mmap.py
==============================================================================
--- pypy/dist/pypy/module/mmap/test/test_mmap.py (original)
+++ pypy/dist/pypy/module/mmap/test/test_mmap.py Sun Sep 17 13:36:25 2006
@@ -486,7 +486,9 @@
# test access=ACCESS_READ
mapsize = 10
- open(filename, "wb").write("a" * mapsize)
+ f = open(filename, "wb")
+ f.write("a" * mapsize)
+ f.close()
f = open(filename, "rb")
m = mmap.mmap(f.fileno(), mapsize, access=mmap.ACCESS_READ)
# assert m[:] == 'a' * mapsize
More information about the Pypy-commit
mailing list