Skip to content

Commit

Permalink
Add backport comment
Browse files Browse the repository at this point in the history
  • Loading branch information
slozier authored Jan 6, 2025
1 parent bdc0484 commit c9a1896
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Src/StdLib/Lib/test/test_mmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ def test_access_parameter(self):
# Try writing with PROT_EXEC and without PROT_WRITE
prot = mmap.PROT_READ | getattr(mmap, 'PROT_EXEC', 0)
with open(TESTFN, "r+b") as f:
# try/except backported from Python 3.12
try:
m = mmap.mmap(f.fileno(), mapsize, prot=prot)
except PermissionError:
Expand Down

0 comments on commit c9a1896

Please sign in to comment.