Skip to content

Commit 8e11e5f

Browse files
projectgusdpgeorge
authored andcommitted
tests/misc/sys_settrace_features.py: Add note about CPython 3.12 issue.
CPython 3.12 has a documented issue with settrace for opcodes, apparently due to PEP 669. "This behavior will be changed back in 3.13 to be consistent with previous versions." No easy way to make the test pass on CPython 3.12, but at least this helps signal what the problem is to anyone who runs into a failure. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <[email protected]>
1 parent 3b3b488 commit 8e11e5f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/misc/sys_settrace_features.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
print("SKIP")
77
raise SystemExit
88

9+
if sys.version.startswith("3.12"):
10+
# There is a CPython change in settrace that is reverted in 3.13!
11+
print("WARNING: this test will fail when compared to CPython 3.12.x behaviour")
12+
913

1014
def print_stacktrace(frame, level=0):
1115
# Ignore CPython specific helpers.

0 commit comments

Comments
 (0)