summaryrefslogtreecommitdiff
path: root/tests/micropython/heapalloc_iter.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/micropython/heapalloc_iter.py')
-rw-r--r--tests/micropython/heapalloc_iter.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/micropython/heapalloc_iter.py b/tests/micropython/heapalloc_iter.py
index 163e17211..5a44a558b 100644
--- a/tests/micropython/heapalloc_iter.py
+++ b/tests/micropython/heapalloc_iter.py
@@ -1,10 +1,17 @@
# test that iterating doesn't use the heap
try:
frozenset
- import array
-except (NameError, ImportError):
+except NameError:
print("SKIP")
raise SystemExit
+try:
+ import uarray as array
+except ImportError:
+ try:
+ import array
+ except ImportError:
+ print("SKIP")
+ raise SystemExit
try:
from micropython import heap_lock, heap_unlock