2019-08-22 21:25:46 -04:00
|
|
|
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)
|
2020-03-22 22:26:08 -04:00
|
|
|
exec("try:\n xyz\nexcept NameError as er:\n import sys\n sys.print_exception(er)")
|