Author: Antonio Cuni <[email protected]>
Branch: py3k
Changeset: r51881:1089c2a88694
Date: 2012-01-27 16:47 +0100
http://bitbucket.org/pypy/pypy/changeset/1089c2a88694/

Log:    py3k-ify the syntax of this test as well

diff --git a/pypy/interpreter/test/test_compiler.py 
b/pypy/interpreter/test/test_compiler.py
--- a/pypy/interpreter/test/test_compiler.py
+++ b/pypy/interpreter/test/test_compiler.py
@@ -71,8 +71,8 @@
     def test_syntaxerror_attrs(self):
         w_args = self.space.appexec([], r"""():
             try:
-                exec 'if 1:\n  x\n y\n'
-            except SyntaxError, e:
+                exec('if 1:\n  x\n y\n')
+            except SyntaxError as e:
                 return e.args
         """)
         assert self.space.unwrap(w_args) == (
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to