diff options
author | Damien George <damien@micropython.org> | 2025-06-26 12:25:01 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-07-12 23:32:28 +1000 |
commit | 125d19ce7be05c91be332ba088cc38ada8020b2f (patch) | |
tree | 3924e625219a8dbebfe41c3107f81ad4f8fcf08f /tests/micropython/memstats.py | |
parent | 908f938c44cc45bd725cf14d09895ab7472dd67a (diff) |
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>
Diffstat (limited to 'tests/micropython/memstats.py')
-rw-r--r-- | tests/micropython/memstats.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/tests/micropython/memstats.py b/tests/micropython/memstats.py index dee3a4ce2..33204d908 100644 --- a/tests/micropython/memstats.py +++ b/tests/micropython/memstats.py @@ -5,13 +5,14 @@ import micropython # these functions are not always available if not hasattr(micropython, "mem_total"): print("SKIP") -else: - t = micropython.mem_total() - c = micropython.mem_current() - p = micropython.mem_peak() + raise SystemExit - l = list(range(10000)) +t = micropython.mem_total() +c = micropython.mem_current() +p = micropython.mem_peak() - print(micropython.mem_total() > t) - print(micropython.mem_current() > c) - print(micropython.mem_peak() > p) +l = list(range(10000)) + +print(micropython.mem_total() > t) +print(micropython.mem_current() > c) +print(micropython.mem_peak() > p) |