[py-svn] r63473 - py/trunk/py/test/plugin

briandorsey at codespeak.net briandorsey at codespeak.net
Wed Apr 1 05:33:55 CEST 2009


Author: briandorsey
Date: Wed Apr  1 05:33:54 2009
New Revision: 63473

Modified:
   py/trunk/py/test/plugin/pytest_resultdb.py
Log:
make passed, skipped and failed all default to 'False' for consistency when the attributes are not found.


Modified: py/trunk/py/test/plugin/pytest_resultdb.py
==============================================================================
--- py/trunk/py/test/plugin/pytest_resultdb.py	(original)
+++ py/trunk/py/test/plugin/pytest_resultdb.py	Wed Apr  1 05:33:54 2009
@@ -126,9 +126,9 @@
     def flatten(self, item):
         return (item.get('runid', None),
                 item.get('name', None),
-                item.get('passed', None),
-                item.get('skipped', None),
-                item.get('failed', None),
+                item.get('passed', False),
+                item.get('skipped', False),
+                item.get('failed', False),
                 item.get('shortrepr', None),
                 item.get('longrepr', None),
                 item.get('fspath', None),



More information about the pytest-commit mailing list