Kaydet (Commit) 1b5112ac authored tarafından Tim Peters's avatar Tim Peters

I left some debugging junk in here; removed it. Also replaced a few

more instances of the bizarre "del f; del m" ways to spell .close() (del
won't do any good here under Jython, etc).
üst 17d67f07
......@@ -221,11 +221,12 @@ def test_both():
verify(m[:] == 'c'*mapsize,
"Write-through memory map memory not updated properly.")
m.flush()
del m, f
m.close()
f.close()
f = open(TESTFN, 'rb')
stuff = f.read()
f.close()
verify(open(TESTFN, 'rb').read() == 'c'*mapsize,
verify(stuff == 'c'*mapsize,
"Write-through memory map data file not updated properly.")
print " Opening mmap with access=ACCESS_COPY"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment