summaryrefslogtreecommitdiff
path: root/tests/micropython/meminfo.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-04-04 22:05:30 +0100
committerDamien George <damien.p.george@gmail.com>2015-04-04 22:05:30 +0100
commit9dd36404646f857c4f250537bac0d9a8ad041d25 (patch)
treec6509bcd3c7d5c2e67332110c582df2b5a5c669f /tests/micropython/meminfo.py
parent7e758b1cf878312cab5d9d2825b36e7235ea10a3 (diff)
tests: Add missing tests for builtins, and many other things.
Diffstat (limited to 'tests/micropython/meminfo.py')
-rw-r--r--tests/micropython/meminfo.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/micropython/meminfo.py b/tests/micropython/meminfo.py
new file mode 100644
index 000000000..698bbbd21
--- /dev/null
+++ b/tests/micropython/meminfo.py
@@ -0,0 +1,12 @@
+# tests meminfo functions in micropython module
+
+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)