From a161f6070b455ac43aa4e414d7b64e6a80a37978 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 15 Jun 2008 19:54:36 +0000 Subject: [PATCH] Forward-port new test from r64300. --- Lib/test/test_grammar.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_grammar.py b/Lib/test/test_grammar.py index 0e593677fd..e749e440ca 100644 --- a/Lib/test/test_grammar.py +++ b/Lib/test/test_grammar.py @@ -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 -- 2.50.1