]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
check that the parser module can handle the new keyword syntax
authorBenjamin Peterson <benjamin@python.org>
Tue, 19 Aug 2008 22:06:11 +0000 (22:06 +0000)
committerBenjamin Peterson <benjamin@python.org>
Tue, 19 Aug 2008 22:06:11 +0000 (22:06 +0000)
Lib/test/test_parser.py

index 8cb68eee6fc6aa07c302690a01c1c1af9d695012..ba77bb806f38b79cd7228ee8490963520d5fdff6 100644 (file)
@@ -66,6 +66,7 @@ class RoundtripLegalSyntaxTestCase(unittest.TestCase):
         self.check_expr("foo(a, b, c, *args)")
         self.check_expr("foo(a, b, c, *args, **kw)")
         self.check_expr("foo(a, b, c, **kw)")
+        self.check_expr("foo(a, *args, keyword=23)")
         self.check_expr("foo + bar")
         self.check_expr("foo - bar")
         self.check_expr("foo * bar")