mmap.PROT_READ does not exists on win32;

Skip this test created by r60830.
This commit is contained in:
Amaury Forgeot d'Arc 2008-02-16 00:16:50 +00:00
parent d8bcbf2b2e
commit 64d6843788
1 changed files with 2 additions and 0 deletions

View File

@ -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")