mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 09:50:15 +01:00
15 lines
285 B
Python
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())
|