mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
[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 14098b78f7
)
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
190e8fbfb7
commit
42b6883d5f
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue