Forward-port new test from r64300.

This commit is contained in:
Georg Brandl 2008-06-15 19:54:36 +00:00
parent e607823af5
commit a161f6070b

View 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