summaryrefslogtreecommitdiff
path: root/tests/micropython/heapalloc_iter.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-02-14 16:46:44 +1100
committerDamien George <damien.p.george@gmail.com>2018-02-14 16:46:44 +1100
commit6031957473a15f62ecbe59b9d27e58e9d06a4d8a (patch)
treec095f5ae6ae4bbc63c607f697d199d6ce199c18c /tests/micropython/heapalloc_iter.py
parent24c513cbc31fcc9df2ceda1666b1e1a82879a95e (diff)
tests: Automatically skip tests that require eval, exec or frozenset.
Diffstat (limited to 'tests/micropython/heapalloc_iter.py')
-rw-r--r--tests/micropython/heapalloc_iter.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/micropython/heapalloc_iter.py b/tests/micropython/heapalloc_iter.py
index 30ac82e14..163e17211 100644
--- a/tests/micropython/heapalloc_iter.py
+++ b/tests/micropython/heapalloc_iter.py
@@ -1,7 +1,8 @@
# test that iterating doesn't use the heap
try:
+ frozenset
import array
-except ImportError:
+except (NameError, ImportError):
print("SKIP")
raise SystemExit