diff options
Diffstat (limited to 'tests/micropython/opt_level.py')
-rw-r--r-- | tests/micropython/opt_level.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/micropython/opt_level.py b/tests/micropython/opt_level.py index dd5493a7a..789197d88 100644 --- a/tests/micropython/opt_level.py +++ b/tests/micropython/opt_level.py @@ -1,4 +1,10 @@ -import micropython as micropython +# test micropython.opt_level() + +try: + import micropython +except ImportError: + print("SKIP") + raise SystemExit # check we can get and set the level micropython.opt_level(0) |