Files
micropython/tests/cmdline/repl_lock.py.exp
Jeff Epler a791f7f43c tests: Add test for heap lock in REPL.
Signed-off-by: Jeff Epler <jepler@gmail.com>
2025-09-01 21:29:05 -05:00

11 lines
245 B
Plaintext

MicroPython \.\+ version
Use \.\+
>>> import micropython
>>> micropython.heap_lock()
>>> 1+1
2
>>> micropython.heap_lock()
>>> None # Cause the repl's line storage to be enlarged ----------------
>>> micropython.heap_lock()
>>> raise SystemExit