summaryrefslogtreecommitdiff
path: root/tests/micropython/heapalloc_str.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/micropython/heapalloc_str.py')
-rw-r--r--tests/micropython/heapalloc_str.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/micropython/heapalloc_str.py b/tests/micropython/heapalloc_str.py
index 39aa56ccd..6372df5d3 100644
--- a/tests/micropython/heapalloc_str.py
+++ b/tests/micropython/heapalloc_str.py
@@ -1,5 +1,12 @@
# String operations which don't require allocation
-import micropython
+
+try:
+ import micropython
+
+ micropython.heap_lock
+except (ImportError, AttributeError):
+ print("SKIP")
+ raise SystemExit
micropython.heap_lock()