mirror of https://github.com/python/cpython.git
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:
parent
17d67f07cd
commit
1b5112ac97
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue