summaryrefslogtreecommitdiff
path: root/Lib/test/test_mmap.py
diff options
context:
space:
mode:
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"