From: Neal Norwitz Date: Sat, 7 Sep 2002 05:58:28 +0000 (+0000) Subject: Try to get test to pass on Windows X-Git-Tag: v2.2.2b1~179 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bfff5a720a9efedd17b46a07d3f145c1308ca6c5;p=thirdparty%2FPython%2Fcpython.git Try to get test to pass on Windows --- 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")