Fix a few tests that failed, because they were not correct python (the context was wrong).

This commit is contained in:
Dave Halter
2016-05-30 20:10:17 +02:00
parent 4f6368e7eb
commit c12dbe0b9e
6 changed files with 18 additions and 19 deletions

View File

@@ -368,12 +368,12 @@ def nested_args2(*args, **kwargs):
#? int()
nested_args('', 1, 1.0, list)
#? []
nested_args('')
nested_args('').
#? int()
nested_args2('', 1, 1.0)
#? []
nested_args2('')
nested_args2('').
# -----------------
# nested **kwargs
@@ -397,9 +397,9 @@ nested_kw(a=3.0, b=1)
#? int()
nested_kw(b=1, a=r"")
#? []
nested_kw(1, '')
nested_kw(1, '').
#? []
nested_kw(a='')
nested_kw(a='').
#? int()
nested_kw2(b=1)
@@ -408,9 +408,9 @@ nested_kw2(b=1, c=1.0)
#? int()
nested_kw2(c=1.0, b=1)
#? []
nested_kw2('')
nested_kw2('').
#? []
nested_kw2(a='')
nested_kw2(a='').
#? []
nested_kw2('', b=1).
@@ -430,14 +430,14 @@ nested_both('', b=1, c=1.0, list)
nested_both('', c=1.0, b=1, list)
#? []
nested_both('')
nested_both('').
#? int()
nested_both2('', b=1, c=1.0)
#? int()
nested_both2('', c=1.0, b=1)
#? []
nested_both2('')
nested_both2('').
# -----------------
# nested *args/**kwargs with a default arg
@@ -464,7 +464,7 @@ nested_def2('', b=1, c=1.0)[1]
#? int()
nested_def2('', c=1.0, b=1)[1]
#? []
nested_def2('')[1]
nested_def2('')[1].
# -----------------
# magic methods