diff options
Diffstat (limited to 'tests/micropython/heapalloc_fail_tuple.py')
-rw-r--r-- | tests/micropython/heapalloc_fail_tuple.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/micropython/heapalloc_fail_tuple.py b/tests/micropython/heapalloc_fail_tuple.py index de79385e3..11718a810 100644 --- a/tests/micropython/heapalloc_fail_tuple.py +++ b/tests/micropython/heapalloc_fail_tuple.py @@ -1,6 +1,12 @@ # test handling of failed heap allocation with tuple -import micropython +try: + import micropython + + micropython.heap_lock +except (ImportError, AttributeError): + print("SKIP") + raise SystemExit # create tuple x = 1 |