From 50a26147869618925abd6e1709e44bd9ed77fa8f Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Wed, 5 Aug 2015 17:59:45 -0400 Subject: Issue #24791: More tests in test_parser --- Lib/test/test_parser.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/test_parser.py b/Lib/test/test_parser.py index 7082273..3d301b4 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}') -- cgit v0.12