Skip to content

Commit c9a1896

Browse files
authored
Add backport comment
1 parent bdc0484 commit c9a1896

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Src/StdLib/Lib/test/test_mmap.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ def test_access_parameter(self):
242242
# Try writing with PROT_EXEC and without PROT_WRITE
243243
prot = mmap.PROT_READ | getattr(mmap, 'PROT_EXEC', 0)
244244
with open(TESTFN, "r+b") as f:
245+
# try/except backported from Python 3.12
245246
try:
246247
m = mmap.mmap(f.fileno(), mapsize, prot=prot)
247248
except PermissionError:

0 commit comments

Comments
 (0)