Author: Antonio Cuni <[email protected]>
Branch: py3k
Changeset: r56103:e4471a045273
Date: 2012-07-17 11:07 +0200
http://bitbucket.org/pypy/pypy/changeset/e4471a045273/

Log:    more differences in 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
@@ -492,15 +492,15 @@
 
     >>> def f(*, x=lambda __debug__:0): pass
     Traceback (most recent call last):
-    SyntaxError: assignment to keyword
+    SyntaxError: cannot assign to __debug__
 
     >>> def f(*args:(lambda __debug__:0)): pass
     Traceback (most recent call last):
-    SyntaxError: assignment to keyword
+    SyntaxError: cannot assign to __debug__
 
     >>> def f(**kwargs:(lambda __debug__:0)): pass
     Traceback (most recent call last):
-    SyntaxError: assignment to keyword
+    SyntaxError: cannot assign to __debug__
 
     >>> with (lambda *:0): pass
     Traceback (most recent call last):
@@ -510,11 +510,11 @@
 
     >>> def f(**__debug__): pass
     Traceback (most recent call last):
-    SyntaxError: assignment to keyword
+    SyntaxError: cannot assign to __debug__
 
     >>> def f(*xx, __debug__): pass
     Traceback (most recent call last):
-    SyntaxError: assignment to keyword
+    SyntaxError: cannot assign to __debug__
 
 """
 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to