From 8933cb477f8baac44ba0f214cf2738eef21b558d Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Fri, 25 Aug 2006 04:12:10 +0000 Subject: 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). --- Lib/test/test_syntax.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py index dc7a16d..acb3f10 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. -- cgit v0.12