We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28876d3 commit 806c07cCopy full SHA for 806c07c
1 file changed
tests/micropython/heapalloc_iter.py
@@ -1,10 +1,15 @@
1
# test that iterating doesn't use the heap
2
+try:
3
+ import array
4
+except ImportError:
5
+ import sys
6
+ print("SKIP")
7
+ sys.exit()
8
9
try:
10
from micropython import heap_lock, heap_unlock
11
except (ImportError, AttributeError):
12
heap_lock = heap_unlock = lambda:0
-import array
13
14
def do_iter(l):
15
for i in l:
@@ -20,7 +25,7 @@ def gen_func():
20
25
t = (1, 2, 3)
21
26
l = [1, 2]
22
27
d = {1:2}
23
-s = {1}
28
+s = set((1,))
24
29
fs = frozenset((1,))
30
g1 = (100 + x for x in range(2))
31
g2 = gen_func()
0 commit comments