Skip to content

Commit c2803db

Browse files
committed
tests: Add some bytecode tests.
1 parent 0a4c210 commit c2803db

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

tests/bytecode/mp-tests/fun4.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
def f(a, b=1, *c, d):
2+
pass
3+
#print(a,b,c,d) # bug in uPy!
4+
f = lambda a, b, *c, d: None # default arg
5+
#f = lambda a, b=1, *c, d: None # default arg for lambda not implemented

tests/bytecode/mp-tests/import6.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from . import bar
2+
from .. import bar
3+
from ... import bar
4+
from .... import bar
5+
from ..... import bar
6+
from ...... import bar
7+
from . import bar as abc
8+
from .foo import bar
9+
from ..foo import bar
10+
from ...foo import bar
11+
from .foo.bar import baz
12+
from ..foo.bar import baz
13+
from ...foo.bar import baz
14+
from .foo.bar import baz as abc

0 commit comments

Comments
 (0)