[pypy-commit] pypy py3k: py3k-ify the syntax of this test as well
antocuni
noreply at buildbot.pypy.org
Fri Jan 27 20:29:26 CET 2012
Author: Antonio Cuni <anto.cuni at gmail.com>
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) == (
More information about the pypy-commit
mailing list