tests: Add some bytecode tests.

This commit is contained in:
Damien George 2014-04-12 18:00:32 +01:00
parent 0a4c210586
commit c2803db010
2 changed files with 19 additions and 0 deletions

View File

@ -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

View File

@ -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