circuitpython/tests/micropython/meminfo.py
Damien George 125d19ce7b tests/micropython: Add missing SystemExit after printing SKIP.
The test runner expects `print("SKIP")` to be followed by
`raise SystemExit`.  Otherwise it waits for 10 seconds for the target to
do a soft reset before timing out and continuing.

Signed-off-by: Damien George <damien@micropython.org>
2025-07-12 23:32:28 +10:00

13 lines
289 B
Python

# tests meminfo functions in micropython module
import micropython
# these functions are not always available
if not hasattr(micropython, "mem_info"):
print("SKIP")
raise SystemExit
micropython.mem_info()
micropython.mem_info(1)
micropython.qstr_info()
micropython.qstr_info(1)