diff options
Diffstat (limited to 'tests/micropython/heapalloc_yield_from.py')
-rw-r--r-- | tests/micropython/heapalloc_yield_from.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/micropython/heapalloc_yield_from.py b/tests/micropython/heapalloc_yield_from.py index 950717189..9d4f8c694 100644 --- a/tests/micropython/heapalloc_yield_from.py +++ b/tests/micropython/heapalloc_yield_from.py @@ -1,6 +1,12 @@ # Check that yield-from can work without heap allocation -import micropython +try: + import micropython + + micropython.heap_lock +except (ImportError, AttributeError): + print("SKIP") + raise SystemExit # Yielding from a function generator |