]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-107888: Fix test_mmap PROT_EXEC comment (#110125)
authorVictor Stinner <vstinner@python.org>
Fri, 29 Sep 2023 21:56:19 +0000 (23:56 +0200)
committerGitHub <noreply@github.com>
Fri, 29 Sep 2023 21:56:19 +0000 (23:56 +0200)
Lib/test/test_mmap.py

index 92c99d645b25cca005ac733fdaaa018bf4753bd0..dfcf3039422af5e0d0328c2b1c5d022a4a3d6a02 100644 (file)
@@ -258,7 +258,7 @@ class MmapTests(unittest.TestCase):
                 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")