From 522076d1d6013e89cb11b09442f7bb4a7dbc68eb Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Sat, 7 Sep 2002 05:56:21 +0000 Subject: [PATCH] Try to get test to pass on Windows --- Lib/test/test_mmap.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_mmap.py b/Lib/test/test_mmap.py index dd1fb3f359..3322c3858c 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") -- 2.40.0