summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-09-07 05:56:21 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-09-07 05:56:21 (GMT)
commit522076d1d6013e89cb11b09442f7bb4a7dbc68eb (patch)
tree299795dd0d8895ae8bcbec873b86ffa228bf3bb1
parent05212fc7f3eec1f56472d1d6ce5a82049e35f57b (diff)
downloadcpython-522076d1d6013e89cb11b09442f7bb4a7dbc68eb.zip
cpython-522076d1d6013e89cb11b09442f7bb4a7dbc68eb.tar.gz
cpython-522076d1d6013e89cb11b09442f7bb4a7dbc68eb.tar.bz2
Try to get test to pass on Windows
-rw-r--r--Lib/test/test_mmap.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_mmap.py b/Lib/test/test_mmap.py
index dd1fb3f..3322c38 100644
--- a/Lib/test/test_mmap.py
+++ b/Lib/test/test_mmap.py
@@ -198,11 +198,12 @@ def test_both():
# we do not expect a ValueError on Windows
if sys.platform.startswith('win'):
verify(0, "Opening mmap with size+1 should work on Windows.")
- pass
else:
# we expect a ValueError on Unix, but not on Windows
if not sys.platform.startswith('win'):
verify(0, "Opening mmap with size+1 should raise ValueError.")
+ del m
+ del f
print " Opening mmap with access=ACCESS_WRITE"
f = open(TESTFN, "r+b")