We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c4f586 commit fb58380Copy full SHA for fb58380
tests/micropython/opt_level.py
@@ -12,3 +12,7 @@
12
micropython.opt_level(1)
13
exec('print(__debug__)')
14
exec('assert 0')
15
+
16
+# check that level 3 doesn't store line numbers
17
+micropython.opt_level(3)
18
+exec('try:\n xyz\nexcept NameError as er:\n import sys\n sys.print_exception(er)')
tests/micropython/opt_level.py.exp
@@ -2,3 +2,6 @@
2
1
3
True
4
False
5
+Traceback (most recent call last):
6
+ File "<string>", line 1, in <module>
7
+NameError: name 'xyz' is not defined
0 commit comments