From: Amaury Forgeot d'Arc Date: Sat, 16 Feb 2008 00:16:50 +0000 (+0000) Subject: mmap.PROT_READ does not exists on win32; X-Git-Tag: v2.6a1~153 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=64d684378847f431e8b87a3af00c4d675b5caeb4;p=python mmap.PROT_READ does not exists on win32; Skip this test created by r60830. --- diff --git a/Lib/test/test_mmap.py b/Lib/test/test_mmap.py index 2d87eadd2a..8a145cfddb 100644 --- a/Lib/test/test_mmap.py +++ b/Lib/test/test_mmap.py @@ -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")