From ade9b9aa8e545c7d90952cd2d2ba6472618c0eee Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Thu, 14 Jul 2011 11:46:32 -0500 Subject: [PATCH] add a test for vararg call --- testing/test_assertrewrite.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/testing/test_assertrewrite.py b/testing/test_assertrewrite.py index cde6b9e0b..366b48c2c 100644 --- a/testing/test_assertrewrite.py +++ b/testing/test_assertrewrite.py @@ -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})