add a test for vararg call
This commit is contained in:
parent
7576b3c7d0
commit
ade9b9aa8e
|
@ -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})
|
||||
|
|
Loading…
Reference in New Issue