summaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
authorAngus Gratton <angus@redyak.com.au>2024-11-20 16:46:21 +1100
committerDamien George <damien@micropython.org>2024-11-28 23:11:36 +1100
commit8e11e5f1a14ca3395afaab2e42edebe41221eba1 (patch)
treea1f167ad597bf33d30f58f5e249853ba10335741 /tests
parent3b3b48892f96e2c81e7887f996fd7ff457acbb5d (diff)
downloadmicropython-8e11e5f1a14ca3395afaab2e42edebe41221eba1.tar.gz
micropython-8e11e5f1a14ca3395afaab2e42edebe41221eba1.zip
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 <angus@redyak.com.au>
Diffstat (limited to 'tests')
-rw-r--r--tests/misc/sys_settrace_features.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/misc/sys_settrace_features.py b/tests/misc/sys_settrace_features.py
index 8ca6b382e3..6eeb2b900f 100644
--- a/tests/misc/sys_settrace_features.py
+++ b/tests/misc/sys_settrace_features.py
@@ -6,6 +6,10 @@ except AttributeError:
print("SKIP")
raise SystemExit
+if sys.version.startswith("3.12"):
+ # There is a CPython change in settrace that is reverted in 3.13!
+ print("WARNING: this test will fail when compared to CPython 3.12.x behaviour")
+
def print_stacktrace(frame, level=0):
# Ignore CPython specific helpers.