From: Brett Cannon Date: Fri, 25 Aug 2006 04:12:10 +0000 (+0000) Subject: Change test of assignment of backticked expression to be an "invalid syntax" X-Git-Tag: v3.0a1~1330 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8933cb477f8baac44ba0f214cf2738eef21b558d;p=python Change test of assignment of backticked expression to be an "invalid syntax" SyntaxError. This is probably not the proper solution to this failing test, but removing the test itself causes 19 other tests to fail for some odd reason because doctest doesn't expect a complete traceback (or something; rather odd problem for just removing a single test). --- diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py index dc7a16d1e2..acb3f10536 100644 --- a/Lib/test/test_syntax.py +++ b/Lib/test/test_syntax.py @@ -71,7 +71,7 @@ SyntaxError: can't assign to literal (, line 1) >>> `1` = 1 Traceback (most recent call last): -SyntaxError: can't assign to repr (, line 1) +SyntaxError: invalid syntax If the left-hand side of an assignment is a list or tuple, an illegal expression inside that contain should still cause a syntax error.