diff options
Diffstat (limited to 'tests/micropython/heap_locked.py')
-rw-r--r-- | tests/micropython/heap_locked.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/micropython/heap_locked.py b/tests/micropython/heap_locked.py index d9e5b5d40..d9d99493d 100644 --- a/tests/micropython/heap_locked.py +++ b/tests/micropython/heap_locked.py @@ -1,8 +1,10 @@ # test micropython.heap_locked() -import micropython +try: + import micropython -if not hasattr(micropython, "heap_locked"): + micropython.heap_locked +except (AttributeError, ImportError): print("SKIP") raise SystemExit |