From: Georg Brandl Date: Sun, 15 Jun 2008 19:54:36 +0000 (+0000) Subject: Forward-port new test from r64300. X-Git-Tag: v2.6b1~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a161f6070b455ac43aa4e414d7b64e6a80a37978;p=thirdparty%2FPython%2Fcpython.git Forward-port new test from r64300. --- diff --git a/Lib/test/test_grammar.py b/Lib/test/test_grammar.py index 0e593677fd50..e749e440ca15 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