[pypy-svn] r49267 - pypy/dist/pypy/tool/pytest

arigo at codespeak.net arigo at codespeak.net
Sun Dec 2 12:36:27 CET 2007


Author: arigo
Date: Sun Dec  2 12:36:26 2007
New Revision: 49267

Modified:
   pypy/dist/pypy/tool/pytest/appsupport.py
Log:
We can get a real None here, e.g. if the signature of the app_test
function itself is bogus.


Modified: pypy/dist/pypy/tool/pytest/appsupport.py
==============================================================================
--- pypy/dist/pypy/tool/pytest/appsupport.py	(original)
+++ pypy/dist/pypy/tool/pytest/appsupport.py	Sun Dec  2 12:36:26 2007
@@ -112,7 +112,7 @@
 
     def __init__(self, space, apptb):
         l = []
-        while apptb is not space.w_None: 
+        while apptb is not space.w_None and apptb is not None:
             l.append(self.Entry(space, apptb))
             apptb = space.getattr(apptb, space.wrap('tb_next'))
         list.__init__(self, l)



More information about the Pypy-commit mailing list