blob: d9d99493dd6b7e5eae0a1a536382cf26ef350032 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# test micropython.heap_locked()
try:
import micropython
micropython.heap_locked
except (AttributeError, ImportError):
print("SKIP")
raise SystemExit
micropython.heap_lock()
print(micropython.heap_locked())
micropython.heap_unlock()
print(micropython.heap_locked())
|