summaryrefslogtreecommitdiff
path: root/tests/micropython/heapalloc_inst_call.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/micropython/heapalloc_inst_call.py')
-rw-r--r--tests/micropython/heapalloc_inst_call.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/micropython/heapalloc_inst_call.py b/tests/micropython/heapalloc_inst_call.py
index 14d8826bf..f78aa3cf8 100644
--- a/tests/micropython/heapalloc_inst_call.py
+++ b/tests/micropython/heapalloc_inst_call.py
@@ -1,6 +1,13 @@
# Test that calling clazz.__call__() with up to at least 3 arguments
# doesn't require heap allocation.
-import micropython
+
+try:
+ import micropython
+
+ micropython.heap_lock
+except (ImportError, AttributeError):
+ print("SKIP")
+ raise SystemExit
class Foo0: