[pypy-commit] pypy cpyext-gc-support-2: App-level assertion details don't always work. In one case, I could

arigo pypy.commits at gmail.com
Sat Feb 13 11:22:26 EST 2016


Author: Armin Rigo <arigo at tunes.org>
Branch: cpyext-gc-support-2
Changeset: r82225:77fd0fb746fe
Date: 2016-02-13 17:21 +0100
http://bitbucket.org/pypy/pypy/changeset/77fd0fb746fe/

Log:	App-level assertion details don't always work. In one case, I could
	restore support for them with this fix, caused probably by some
	long-ago refactoring

diff --git a/pypy/tool/pytest/appsupport.py b/pypy/tool/pytest/appsupport.py
--- a/pypy/tool/pytest/appsupport.py
+++ b/pypy/tool/pytest/appsupport.py
@@ -58,6 +58,9 @@
         self.w_locals = space.getattr(pyframe, space.wrap('f_locals'))
         self.f_locals = self.w_locals   # for py.test's recursion detection
 
+    def get_w_globals(self):
+        return self.w_globals
+
     def eval(self, code, **vars):
         space = self.space
         for key, w_value in vars.items():


More information about the pypy-commit mailing list