From bfff5a720a9efedd17b46a07d3f145c1308ca6c5 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Sat, 7 Sep 2002 05:58:28 +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 7333d5f4dbc2..d208d44b4f95 100644 --- a/Lib/test/test_mmap.py +++ b/Lib/test/test_mmap.py @@ -199,11 +199,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.47.3