diff options
Diffstat (limited to 'tests/micropython/opt_level_lineno.py')
-rw-r--r-- | tests/micropython/opt_level_lineno.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/micropython/opt_level_lineno.py b/tests/micropython/opt_level_lineno.py index dda9092d8..fcfbe8643 100644 --- a/tests/micropython/opt_level_lineno.py +++ b/tests/micropython/opt_level_lineno.py @@ -1,4 +1,10 @@ -import micropython as micropython +# test micropython.opt_level() and line numbers + +try: + import micropython +except ImportError: + print("SKIP") + raise SystemExit # check that level 3 doesn't store line numbers # the expected output is that any line is printed as "line 1" |