summaryrefslogtreecommitdiffstatshomepage
path: root/tests/pyb/switch.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-05-04 12:40:51 +0100
committerDamien George <damien.p.george@gmail.com>2014-05-04 12:40:51 +0100
commitcda363a036f550707ed48d94e1be3ad54dda90b6 (patch)
tree1719b19ce5a3a1fa191ad1ecfe8a49082f05ad5f /tests/pyb/switch.py
parentc327c0de5d7a07cc0afa2fbad5aa33f59d90aad0 (diff)
downloadmicropython-cda363a036f550707ed48d94e1be3ad54dda90b6.tar.gz
micropython-cda363a036f550707ed48d94e1be3ad54dda90b6.zip
tests, pyb: Add 'import pyb' when needed.
Diffstat (limited to 'tests/pyb/switch.py')
-rw-r--r--tests/pyb/switch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/pyb/switch.py b/tests/pyb/switch.py
index 4b74e0fd73..7c44adb136 100644
--- a/tests/pyb/switch.py
+++ b/tests/pyb/switch.py
@@ -1,6 +1,6 @@
from pyb import Switch
-sw = pyb.Switch()
+sw = Switch()
print(sw())
sw.callback(print)
sw.callback(None)