diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-02-16 00:16:50 (GMT) |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-02-16 00:16:50 (GMT) |
commit | 64d684378847f431e8b87a3af00c4d675b5caeb4 (patch) | |
tree | a966ffa234ef83a9c076d2cdce684790528c4ecc /Lib/test | |
parent | d8bcbf2b2ecca3cf168718d50dc46ba5775b0bc9 (diff) | |
download | cpython-64d684378847f431e8b87a3af00c4d675b5caeb4.zip cpython-64d684378847f431e8b87a3af00c4d675b5caeb4.tar.gz cpython-64d684378847f431e8b87a3af00c4d675b5caeb4.tar.bz2 |
mmap.PROT_READ does not exists on win32;
Skip this test created by r60830.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_mmap.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 @@ 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") |