Files
micropython/tests/cmdline/repl_lock.py
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

8 lines
181 B
Python

import micropython
micropython.heap_lock()
1+1
micropython.heap_lock()
None # Cause the repl's line storage to be enlarged ----------------
micropython.heap_lock()
raise SystemExit