Author: Antonio Cuni <[email protected]> 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 _______________________________________________ pypy-commit mailing list [email protected] http://mail.python.org/mailman/listinfo/pypy-commit
