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

Reply via email to