summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_mmap.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-09-10 21:19:55 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-09-10 21:19:55 (GMT)
commit1b5112ac97745d9a48bc91771ec84d5d415eeba6 (patch)
treed03b81c130c1515849cdf09c8daa8a81345a6305 /Lib/test/test_mmap.py
parent17d67f07cd675e1d0d0c81bc619b6762cfc145ca (diff)
downloadcpython-1b5112ac97745d9a48bc91771ec84d5d415eeba6.zip
cpython-1b5112ac97745d9a48bc91771ec84d5d415eeba6.tar.gz
cpython-1b5112ac97745d9a48bc91771ec84d5d415eeba6.tar.bz2
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 26dbc4a..ea9c4ee 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"