mirror of https://github.com/python/cpython
mmap.PROT_READ does not exists on win32;
Skip this test created by r60830.
This commit is contained in:
parent
d8bcbf2b2e
commit
64d6843788
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue