summaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/bytecode/mp-tests/fun4.py5
-rw-r--r--tests/bytecode/mp-tests/import6.py14
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/bytecode/mp-tests/fun4.py b/tests/bytecode/mp-tests/fun4.py
new file mode 100644
index 0000000000..b8d2ac159e
--- /dev/null
+++ b/tests/bytecode/mp-tests/fun4.py
@@ -0,0 +1,5 @@
+def f(a, b=1, *c, d):
+ pass
+ #print(a,b,c,d) # bug in uPy!
+f = lambda a, b, *c, d: None # default arg
+#f = lambda a, b=1, *c, d: None # default arg for lambda not implemented
diff --git a/tests/bytecode/mp-tests/import6.py b/tests/bytecode/mp-tests/import6.py
new file mode 100644
index 0000000000..7cbb3c6d73
--- /dev/null
+++ b/tests/bytecode/mp-tests/import6.py
@@ -0,0 +1,14 @@
+from . import bar
+from .. import bar
+from ... import bar
+from .... import bar
+from ..... import bar
+from ...... import bar
+from . import bar as abc
+from .foo import bar
+from ..foo import bar
+from ...foo import bar
+from .foo.bar import baz
+from ..foo.bar import baz
+from ...foo.bar import baz
+from .foo.bar import baz as abc