We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdc0484 commit c9a1896Copy full SHA for c9a1896
Src/StdLib/Lib/test/test_mmap.py
@@ -242,6 +242,7 @@ def test_access_parameter(self):
242
# Try writing with PROT_EXEC and without PROT_WRITE
243
prot = mmap.PROT_READ | getattr(mmap, 'PROT_EXEC', 0)
244
with open(TESTFN, "r+b") as f:
245
+ # try/except backported from Python 3.12
246
try:
247
m = mmap.mmap(f.fileno(), mapsize, prot=prot)
248
except PermissionError:
0 commit comments