From: Yury Selivanov Date: Wed, 5 Aug 2015 21:59:45 +0000 (-0400) Subject: Issue #24791: More tests in test_parser X-Git-Tag: v3.6.0a1~1827^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=50a26147869618925abd6e1709e44bd9ed77fa8f;p=python Issue #24791: More tests in test_parser --- diff --git a/Lib/test/test_parser.py b/Lib/test/test_parser.py index 7082273b8f..3d301b4924 100644 --- a/Lib/test/test_parser.py +++ b/Lib/test/test_parser.py @@ -350,9 +350,11 @@ class RoundtripLegalSyntaxTestCase(unittest.TestCase): self.check_expr('{**{}, 3:4, **{5:6, 7:8}}') def test_argument_unpacking(self): + self.check_expr("f(*a, **b)") self.check_expr('f(a, *b, *c, *d)') self.check_expr('f(**a, **b)') self.check_expr('f(2, *a, *b, **b, **c, **d)') + self.check_expr("f(*b, *() or () and (), **{} and {}, **() or {})") def test_set_comprehensions(self): self.check_expr('{x for x in seq}')