Try to get test to pass on Windows
This commit is contained in:
parent
05212fc7f3
commit
522076d1d6
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue