]> granicus.if.org Git - python/commitdiff
Try to get test to pass on Windows
authorNeal Norwitz <nnorwitz@gmail.com>
Sat, 7 Sep 2002 05:56:21 +0000 (05:56 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sat, 7 Sep 2002 05:56:21 +0000 (05:56 +0000)
Lib/test/test_mmap.py

index dd1fb3f359c5fd2ae499d622ad5f634d671b3b82..3322c3858c822bd5b09ad312c3b5576d1414ce97 100644 (file)
@@ -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")