We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3566438 commit 7298abeCopy full SHA for 7298abe
3 files changed
tests/basics/struct_micropython.py
tests/basics/struct_micropython.py.exp
tests/micropython/opt_level_lineno.py
@@ -3,4 +3,5 @@
3
# check that level 3 doesn't store line numbers
4
# the expected output is that any line is printed as "line 1"
5
micropython.opt_level(3)
6
-exec("try:\n xyz\nexcept NameError as er:\n import sys\n sys.print_exception(er)")
+# CIRCUITPY-CHANGE: use traceback.print_exception() instead of sys.print_exception()
7
+exec("try:\n xyz\nexcept NameError as er:\n import traceback\n traceback.print_exception(er)")
0 commit comments