[pypy-commit] pypy py3k: pypy has different error messages

antocuni noreply at buildbot.pypy.org
Tue Jul 17 18:10:50 CEST 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r56101:533a416fb35c
Date: 2012-07-17 10:59 +0200
http://bitbucket.org/pypy/pypy/changeset/533a416fb35c/

Log:	pypy has different error messages

diff --git a/lib-python/3.2/test/test_syntax.py b/lib-python/3.2/test/test_syntax.py
--- a/lib-python/3.2/test/test_syntax.py
+++ b/lib-python/3.2/test/test_syntax.py
@@ -33,7 +33,7 @@
 
 >>> None = 1
 Traceback (most recent call last):
-SyntaxError: assignment to keyword
+SyntaxError: cannot assign to None
 
 It's a syntax error to assign to the empty tuple.  Why isn't it an
 error to assign to the empty list?  It will always raise some error at
@@ -233,7 +233,7 @@
 SyntaxError: can't assign to generator expression
 >>> None += 1
 Traceback (most recent call last):
-SyntaxError: assignment to keyword
+SyntaxError: cannot assign to None
 >>> f() += 1
 Traceback (most recent call last):
 SyntaxError: can't assign to function call


More information about the pypy-commit mailing list