summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-04-18 16:21:47 +1000
committerDamien George <damien.p.george@gmail.com>2017-04-18 17:24:30 +1000
commitc7c14f163458046767b539c567a421076ea9a6b7 (patch)
tree3428f2f6a6d692a2ca6e015d856a7d5d92763647
parentbbb4b9822f094825d7e7fd1f7df716adc2598685 (diff)
downloadmicropython-c7c14f163458046767b539c567a421076ea9a6b7.tar.gz
micropython-c7c14f163458046767b539c567a421076ea9a6b7.zip
tests/micropython: Add test for micropython.kbd_intr().
-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 0000000000..a7ce7464b9
--- /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 0000000000..e69de29bb2
--- /dev/null
+++ b/tests/micropython/kbd_intr.py.exp