summaryrefslogtreecommitdiff
path: root/tests/micropython
diff options
context:
space:
mode:
Diffstat (limited to 'tests/micropython')
-rw-r--r--tests/micropython/decorator.py7
-rw-r--r--tests/micropython/decorator.py.exp1
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/micropython/decorator.py b/tests/micropython/decorator.py
new file mode 100644
index 000000000..bf688968a
--- /dev/null
+++ b/tests/micropython/decorator.py
@@ -0,0 +1,7 @@
+# test micropython-specific decorators
+
+@micropython.bytecode
+def f():
+ return 'bytecode'
+
+print(f())
diff --git a/tests/micropython/decorator.py.exp b/tests/micropython/decorator.py.exp
new file mode 100644
index 000000000..b37707e7c
--- /dev/null
+++ b/tests/micropython/decorator.py.exp
@@ -0,0 +1 @@
+bytecode