[pypy-commit] pypy py3.5: fix test_stacklet
rlamy
pypy.commits at gmail.com
Fri Dec 15 22:27:43 EST 2017
Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: py3.5
Changeset: r93434:bfa08194d964
Date: 2017-12-16 03:27 +0000
http://bitbucket.org/pypy/pypy/changeset/bfa08194d964/
Log: fix test_stacklet
diff --git a/pypy/module/_continuation/test/support.py b/pypy/module/_continuation/test/support.py
--- a/pypy/module/_continuation/test/support.py
+++ b/pypy/module/_continuation/test/support.py
@@ -10,4 +10,3 @@
import rpython.rlib.rstacklet
except CompilationError as e:
py.test.skip("cannot import rstacklet: %s" % e)
-
diff --git a/pypy/module/_continuation/test/test_stacklet.py b/pypy/module/_continuation/test/test_stacklet.py
--- a/pypy/module/_continuation/test/test_stacklet.py
+++ b/pypy/module/_continuation/test/test_stacklet.py
@@ -23,7 +23,7 @@
# frame cycle
res.append('...')
break
- if f.f_code.co_name == 'runtest':
+ if f.f_code.co_name == '<module>':
# if we are running with -A, cut all the stack above
# the test function
break
@@ -34,9 +34,6 @@
return res
return stack
""")
- if cls.runappdirect:
- # make sure that "self.stack" does not pass the self
- cls.w_stack = staticmethod(cls.w_stack.im_func)
def test_new_empty(self):
from _continuation import continulet
More information about the pypy-commit
mailing list