[py-svn] r10380 - py/branch/py-collect/test

hpk at codespeak.net hpk at codespeak.net
Wed Apr 6 23:53:29 CEST 2005


Author: hpk
Date: Wed Apr  6 23:53:29 2005
New Revision: 10380

Modified:
   py/branch/py-collect/test/drive.py
Log:
give custom Outcomes more freedom 


Modified: py/branch/py-collect/test/drive.py
==============================================================================
--- py/branch/py-collect/test/drive.py	(original)
+++ py/branch/py-collect/test/drive.py	Wed Apr  6 23:53:29 2005
@@ -75,7 +75,8 @@
                     res = None
                     raise 
                 except colitem.Outcome, res: 
-                    res.excinfo = py.code.ExceptionInfo() 
+                    if not hasattr(res, 'excinfo'): 
+                        res.excinfo = py.code.ExceptionInfo() 
                 except: 
                     excinfo = py.code.ExceptionInfo() 
                     res = colitem.Failed(excinfo=excinfo) 



More information about the pytest-commit mailing list