diff options
Diffstat (limited to 'tests/micropython/stack_use.py')
-rw-r--r-- | tests/micropython/stack_use.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/micropython/stack_use.py b/tests/micropython/stack_use.py index 640bb8b2f..5d36fdca2 100644 --- a/tests/micropython/stack_use.py +++ b/tests/micropython/stack_use.py @@ -1,7 +1,10 @@ # tests stack_use function in micropython module -import micropython -if not hasattr(micropython, "stack_use"): +try: + import micropython + + micropython.stack_use +except (ImportError, AttributeError): print("SKIP") raise SystemExit |