mirror of https://github.com/python/cpython
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
|
# 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")
|
||||||
|
|
Loading…
Reference in New Issue