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