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).
This commit is contained in:
Tim Peters 2002-09-10 21:19:55 +00:00
parent 17d67f07cd
commit 1b5112ac97
1 changed files with 3 additions and 2 deletions

View File

@ -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"