add a test for vararg call

This commit is contained in:
Benjamin Peterson 2011-07-14 11:46:32 -05:00
parent 7576b3c7d0
commit ade9b9aa8e
1 changed files with 4 additions and 0 deletions

View File

@ -195,6 +195,10 @@ class TestAssertionRewrite:
def f():
assert g(1, 3, g=23)
assert getmsg(f, ns) == """assert g(1, 3, g=23)"""
def f():
seq = [1, 2, 3]
assert g(*seq)
assert getmsg(f, ns) == """assert g(*[1, 2, 3])"""
def f():
x = "a"
assert g(**{x : 2})