[3.11] gh-107888: Fix test_mmap PROT_EXEC comment (GH-110125) (#110130)
https://github.com/python/cpython/commit/42b6883d5f648a95e33f815364c8a529e45... commit: 42b6883d5f648a95e33f815364c8a529e4574caa branch: 3.11 author: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> committer: vstinner <vstinner@python.org> date: 2023-09-29T22:19:33Z summary: [3.11] gh-107888: Fix test_mmap PROT_EXEC comment (GH-110125) (#110130) gh-107888: Fix test_mmap PROT_EXEC comment (GH-110125) (cherry picked from commit 14098b78f7453adbd40c53e32c29588611b7c87b) Co-authored-by: Victor Stinner <vstinner@python.org> files: M Lib/test/test_mmap.py diff --git a/Lib/test/test_mmap.py b/Lib/test/test_mmap.py index 92c99d645b25c..dfcf3039422af 100644 --- a/Lib/test/test_mmap.py +++ b/Lib/test/test_mmap.py @@ -258,7 +258,7 @@ def test_access_parameter(self): try: m = mmap.mmap(f.fileno(), mapsize, prot=prot) except PermissionError: - # on macOS 14, PROT_READ | PROT_WRITE is not allowed + # on macOS 14, PROT_READ | PROT_EXEC is not allowed pass else: self.assertRaises(TypeError, m.write, b"abcdef")
participants (1)
-
vstinner