commit | 64d684378847f431e8b87a3af00c4d675b5caeb4 | [log] [tgz] |
---|---|---|
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | Sat Feb 16 00:16:50 2008 +0000 |
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | Sat Feb 16 00:16:50 2008 +0000 |
tree | a966ffa234ef83a9c076d2cdce684790528c4ecc | |
parent | d8bcbf2b2ecca3cf168718d50dc46ba5775b0bc9 [diff] [blame] |
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 2d87ead..8a145cf 100644 --- a/Lib/test/test_mmap.py +++ b/Lib/test/test_mmap.py
@@ -427,6 +427,8 @@ 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")