aboutsummaryrefslogtreecommitdiff
path: root/tests/micropython
diff options
context:
space:
mode:
authorDamien George2017-04-18 16:21:47 +1000
committerDamien George2017-04-18 17:24:30 +1000
commitc7c14f163458046767b539c567a421076ea9a6b7 (patch)
tree3428f2f6a6d692a2ca6e015d856a7d5d92763647 /tests/micropython
parentbbb4b9822f094825d7e7fd1f7df716adc2598685 (diff)
tests/micropython: Add test for micropython.kbd_intr().
Diffstat (limited to 'tests/micropython')
-rw-r--r--tests/micropython/kbd_intr.py13
-rw-r--r--tests/micropython/kbd_intr.py.exp0
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/micropython/kbd_intr.py b/tests/micropython/kbd_intr.py
new file mode 100644
index 000000000..a7ce7464b
--- /dev/null
+++ b/tests/micropython/kbd_intr.py
@@ -0,0 +1,13 @@
+# test the micropython.kbd_intr() function
+
+import micropython
+
+try:
+ micropython.kbd_intr
+except AttributeError:
+ print('SKIP')
+ import sys
+ sys.exit()
+
+# just check we can actually call it
+micropython.kbd_intr(3)
diff --git a/tests/micropython/kbd_intr.py.exp b/tests/micropython/kbd_intr.py.exp
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/tests/micropython/kbd_intr.py.exp