Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 522076d

Browse files
committed
Try to get test to pass on Windows
1 parent 05212fc commit 522076d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/test/test_mmap.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,12 @@ def test_both():
198198
# we do not expect a ValueError on Windows
199199
if sys.platform.startswith('win'):
200200
verify(0, "Opening mmap with size+1 should work on Windows.")
201-
pass
202201
else:
203202
# we expect a ValueError on Unix, but not on Windows
204203
if not sys.platform.startswith('win'):
205204
verify(0, "Opening mmap with size+1 should raise ValueError.")
205+
del m
206+
del f
206207

207208
print " Opening mmap with access=ACCESS_WRITE"
208209
f = open(TESTFN, "r+b")

0 commit comments

Comments
 (0)