summaryrefslogtreecommitdiff
path: root/Lib/test/test_mmap.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-09-10 21:19:55 +0000
committerTim Peters <tim.peters@gmail.com>2002-09-10 21:19:55 +0000
commitd74baf75f0057ff58c2f12f108616821f1d40617 (patch)
tree160f376a2cf219dc9c2ae0c88c7216e47d442631 /Lib/test/test_mmap.py
parent78189d150d5dffac85fff98980442f790d73c8bf (diff)
downloadcpython-d74baf75f0057ff58c2f12f108616821f1d40617.tar.gz
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).
Diffstat (limited to 'Lib/test/test_mmap.py')
-rw-r--r--Lib/test/test_mmap.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_mmap.py b/Lib/test/test_mmap.py
index 26dbc4ac39..ea9c4eed4c 100644
--- a/Lib/test/test_mmap.py
+++ b/Lib/test/test_mmap.py
@@ -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"