Forward-port new test from r64300.
authorGeorg Brandl <georg@python.org>
Sun, 15 Jun 2008 19:54:36 +0000 (19:54 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 15 Jun 2008 19:54:36 +0000 (19:54 +0000)
Lib/test/test_grammar.py

index 0e593677fd50d249452d9dfaa1509a8876807d5b..e749e440ca159df0bc7b963f9b64c3f878bea033 100644 (file)
@@ -299,6 +299,7 @@ class GrammarTests(unittest.TestCase):
         self.assertEquals(l5(1, 2), 5)
         self.assertEquals(l5(1, 2, 3), 6)
         check_syntax_error(self, "lambda x: x = 2")
+        check_syntax_error(self, "lambda (None,): None")
 
     ### stmt: simple_stmt | compound_stmt
     # Tested below