[pypy-commit] pypy continulet-pickle: Workaround.

arigo noreply at buildbot.pypy.org
Mon Sep 12 15:36:15 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: continulet-pickle
Changeset: r47223:dc94a2f7f7ee
Date: 2011-09-12 15:24 +0200
http://bitbucket.org/pypy/pypy/changeset/dc94a2f7f7ee/

Log:	Workaround.

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
@@ -72,7 +72,9 @@
         space = self.space
         retval = []
         for arg in self.code.getargs():
-            w_val = space.getitem(self.w_locals, space.wrap(arg))
+            w_val = space.finditem(self.w_locals, space.wrap(arg))
+            if w_val is None:
+                w_val = space.wrap('<no value found>')
             retval.append((arg, w_val))
         return retval
 


More information about the pypy-commit mailing list