Author: Ronan Lamy <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit