summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2006-08-25 04:12:10 +0000
committerBrett Cannon <bcannon@gmail.com>2006-08-25 04:12:10 +0000
commit8933cb477f8baac44ba0f214cf2738eef21b558d (patch)
treef8b1c4c1c1173646e949a4d152cbc9d69744f8e3
parentb3de3baf1996a88e74e35ab51b69181d98bb068b (diff)
downloadcpython-git-8933cb477f8baac44ba0f214cf2738eef21b558d.tar.gz
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).
-rw-r--r--Lib/test/test_syntax.py2
1 files changed, 1 insertions, 1 deletions
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 (<doctest test.test_syntax[9]>, line 1)
>>> `1` = 1
Traceback (most recent call last):
-SyntaxError: can't assign to repr (<doctest test.test_syntax[10]>, 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.