summaryrefslogtreecommitdiff
path: root/tests/micropython/heapalloc_exc_compressed.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/micropython/heapalloc_exc_compressed.py')
-rw-r--r--tests/micropython/heapalloc_exc_compressed.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/micropython/heapalloc_exc_compressed.py b/tests/micropython/heapalloc_exc_compressed.py
index aa071d641..96fe3ca4f 100644
--- a/tests/micropython/heapalloc_exc_compressed.py
+++ b/tests/micropython/heapalloc_exc_compressed.py
@@ -1,4 +1,10 @@
-import micropython
+try:
+ import micropython
+
+ micropython.heap_lock
+except (ImportError, AttributeError):
+ print("SKIP")
+ raise SystemExit
# Tests both code paths for built-in exception raising.
# mp_obj_new_exception_msg_varg (exception requires decompression at raise-time to format)