[pypy-commit] pypy py3.5: fix the tests in test_pyframe that fail in combination with other files
cfbolz
pypy.commits at gmail.com
Sat Jul 28 15:32:06 EDT 2018
Author: Carl Friedrich Bolz-Tereick <cfbolz at gmx.de>
Branch: py3.5
Changeset: r94921:dfda715a5495
Date: 2018-07-28 21:31 +0200
http://bitbucket.org/pypy/pypy/changeset/dfda715a5495/
Log: fix the tests in test_pyframe that fail in combination with other
files
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
@@ -153,6 +153,8 @@
r"""
seen = []
def tracer(f, event, *args):
+ if f.f_code.co_name == "decode":
+ return tracer
seen.append((event, f.f_lineno))
if len(seen) == 5:
f.f_lineno = 1 # bug shown only when setting lineno to 1
@@ -297,7 +299,8 @@
l = []
def trace(a,b,c):
- l.append((a,b,c))
+ if a.f_code.co_name != "decode":
+ l.append((a,b,c))
def f():
h = _testing.Hidden()
More information about the pypy-commit
mailing list