mirror of
https://github.com/micropython/micropython.git
synced 2026-01-08 21:20:13 +01:00
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>
14 lines
289 B
Python
14 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)
|