Try to get test to pass on Windows

This commit is contained in:
Neal Norwitz 2002-09-07 05:56:21 +00:00
parent 05212fc7f3
commit 522076d1d6
1 changed files with 2 additions and 1 deletions

View File

@ -198,11 +198,12 @@ def test_both():
# we do not expect a ValueError on Windows # we do not expect a ValueError on Windows
if sys.platform.startswith('win'): if sys.platform.startswith('win'):
verify(0, "Opening mmap with size+1 should work on Windows.") verify(0, "Opening mmap with size+1 should work on Windows.")
pass
else: else:
# we expect a ValueError on Unix, but not on Windows # we expect a ValueError on Unix, but not on Windows
if not sys.platform.startswith('win'): if not sys.platform.startswith('win'):
verify(0, "Opening mmap with size+1 should raise ValueError.") verify(0, "Opening mmap with size+1 should raise ValueError.")
del m
del f
print " Opening mmap with access=ACCESS_WRITE" print " Opening mmap with access=ACCESS_WRITE"
f = open(TESTFN, "r+b") f = open(TESTFN, "r+b")