Commit 64d68437 authored by Amaury Forgeot d'Arc's avatar Amaury Forgeot d'Arc

mmap.PROT_READ does not exists on win32;

Skip this test created by r60830.
parent d8bcbf2b
......@@ -427,6 +427,8 @@ class MmapTests(unittest.TestCase):
anon_mmap(PAGESIZE)
def test_prot_readonly(self):
if not hasattr(mmap, 'PROT_READ'):
return
mapsize = 10
open(TESTFN, "wb").write("a"*mapsize)
f = open(TESTFN, "rb")
......
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