[Python-3000-checkins] r51596 - python/branches/p3yk/Lib/test/test_syntax.py

brett.cannon python-3000-checkins at python.org
Fri Aug 25 06:12:11 CEST 2006


Author: brett.cannon
Date: Fri Aug 25 06:12:10 2006
New Revision: 51596

Modified:
   python/branches/p3yk/Lib/test/test_syntax.py
Log:
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).


Modified: python/branches/p3yk/Lib/test/test_syntax.py
==============================================================================
--- python/branches/p3yk/Lib/test/test_syntax.py	(original)
+++ python/branches/p3yk/Lib/test/test_syntax.py	Fri Aug 25 06:12:10 2006
@@ -71,7 +71,7 @@
 
 >>> `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.


More information about the Python-3000-checkins mailing list