Kaydet (Commit) 522076d1 authored tarafından Neal Norwitz's avatar Neal Norwitz

Try to get test to pass on Windows

üst 05212fc7
...@@ -198,11 +198,12 @@ def test_both(): ...@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment