Files
micropython/tests/micropython/heap_locked.py
2025-10-01 23:59:15 +10:00

15 lines
285 B
Python

# 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())