]> granicus.if.org Git - python/commitdiff
Change test of assignment of backticked expression to be an "invalid syntax"
authorBrett Cannon <bcannon@gmail.com>
Fri, 25 Aug 2006 04:12:10 +0000 (04:12 +0000)
committerBrett Cannon <bcannon@gmail.com>
Fri, 25 Aug 2006 04:12:10 +0000 (04:12 +0000)
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

index dc7a16d1e26330867e79be93b48697f61fff6ad3..acb3f105369128a8718db250ce60fc5e8f1d1efc 100644 (file)
@@ -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.