summaryrefslogtreecommitdiff
path: root/tests/micropython/memstats.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/micropython/memstats.py')
-rw-r--r--tests/micropython/memstats.py17
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)