We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6003f4 commit 7839b8bCopy full SHA for 7839b8b
tests/micropython/heapalloc_iter.py
@@ -25,6 +25,22 @@ def gen_func():
25
g1 = (100 + x for x in range(2))
26
g2 = gen_func()
27
28
+# test containment (both success and failure) with the heap locked
29
+heap_lock()
30
+print(49 in b'123', 255 in b'123')
31
+print(1 in t, -1 in t)
32
+print(1 in l, -1 in l)
33
+print(1 in d, -1 in d)
34
+print(1 in s, -1 in s)
35
+heap_unlock()
36
+
37
+# test unpacking with the heap locked
38
+unp0 = unp1 = unp2 = None # preallocate slots for globals
39
40
+unp0, unp1, unp2 = t
41
+print(unp0, unp1, unp2)
42
43
44
# test certain builtins with the heap locked
45
heap_lock()
46
print(all(t))
0 commit comments