]> granicus.if.org Git - python/commitdiff
Issue #24791: More tests in test_parser
authorYury Selivanov <yselivanov@sprymix.com>
Wed, 5 Aug 2015 21:59:45 +0000 (17:59 -0400)
committerYury Selivanov <yselivanov@sprymix.com>
Wed, 5 Aug 2015 21:59:45 +0000 (17:59 -0400)
Lib/test/test_parser.py

index 7082273b8f6bd11cb5befab6851b28e86679732d..3d301b4924f5c3c5fed533ee416ba269109fb864 100644 (file)
@@ -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}')