summaryrefslogtreecommitdiff
path: root/tests/micropython/opt_level_lineno.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/micropython/opt_level_lineno.py')
-rw-r--r--tests/micropython/opt_level_lineno.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/micropython/opt_level_lineno.py b/tests/micropython/opt_level_lineno.py
index d8253e54b..1cbf2fb1a 100644
--- a/tests/micropython/opt_level_lineno.py
+++ b/tests/micropython/opt_level_lineno.py
@@ -3,4 +3,4 @@ import micropython as micropython
# check that level 3 doesn't store line numbers
# the expected output is that any line is printed as "line 1"
micropython.opt_level(3)
-exec("try:\n xyz\nexcept NameError as er:\n import sys\n sys.print_exception(er)")
+exec("try:\n xyz\nexcept NameError as er:\n import usys\n usys.print_exception(er)")