diff options
-rw-r--r-- | tests/micropython/meminfo.py | 11 | ||||
-rw-r--r-- | tests/micropython/memstats.py | 17 | ||||
-rw-r--r-- | tests/micropython/stack_use.py | 5 |
3 files changed, 18 insertions, 15 deletions
diff --git a/tests/micropython/meminfo.py b/tests/micropython/meminfo.py index 9df341fbb..957f061f1 100644 --- a/tests/micropython/meminfo.py +++ b/tests/micropython/meminfo.py @@ -5,8 +5,9 @@ import micropython # these functions are not always available if not hasattr(micropython, "mem_info"): print("SKIP") -else: - micropython.mem_info() - micropython.mem_info(1) - micropython.qstr_info() - micropython.qstr_info(1) + raise SystemExit + +micropython.mem_info() +micropython.mem_info(1) +micropython.qstr_info() +micropython.qstr_info(1) 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) diff --git a/tests/micropython/stack_use.py b/tests/micropython/stack_use.py index 266885d9d..640bb8b2f 100644 --- a/tests/micropython/stack_use.py +++ b/tests/micropython/stack_use.py @@ -3,5 +3,6 @@ import micropython if not hasattr(micropython, "stack_use"): print("SKIP") -else: - print(type(micropython.stack_use())) # output varies + raise SystemExit + +print(type(micropython.stack_use())) # output varies |