From: Neal Norwitz Date: Sat, 7 Sep 2002 05:56:21 +0000 (+0000) Subject: Try to get test to pass on Windows X-Git-Tag: v2.3c1~4175 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=522076d1d6013e89cb11b09442f7bb4a7dbc68eb;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 dd1fb3f359c5..3322c3858c82 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")