[pypy-commit] pypy py3k: fix syntax
antocuni
noreply at buildbot.pypy.org
Tue Feb 21 10:50:34 CET 2012
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r52700:08546a562e23
Date: 2012-02-20 22:54 +0100
http://bitbucket.org/pypy/pypy/changeset/08546a562e23/
Log: fix syntax
diff --git a/pypy/interpreter/test/test_pyframe.py b/pypy/interpreter/test/test_pyframe.py
--- a/pypy/interpreter/test/test_pyframe.py
+++ b/pypy/interpreter/test/test_pyframe.py
@@ -75,6 +75,7 @@
# assert did not crash
def test_f_lineno_set_firstline(self):
+ r"""
seen = []
def tracer(f, event, *args):
seen.append((event, f.f_lineno))
@@ -85,7 +86,7 @@
def g():
import sys
sys.settrace(tracer)
- exec "x=1\ny=x+1\nz=y+1\nt=z+1\ns=t+1\n" in {}
+ exec("x=1\ny=x+1\nz=y+1\nt=z+1\ns=t+1\n", {})
sys.settrace(None)
g()
@@ -99,6 +100,7 @@
('line', 4),
('line', 5),
('return', 5)]
+ """
def test_f_back(self):
import sys
More information about the pypy-commit
mailing list