[py-svn] r56596 - in py/branch/event/py/test2: . terminal

hpk at codespeak.net hpk at codespeak.net
Wed Jul 16 16:56:23 CEST 2008


Author: hpk
Date: Wed Jul 16 16:56:22 2008
New Revision: 56596

Modified:
   py/branch/event/py/test2/session.py
   py/branch/event/py/test2/terminal/remote.py
Log:
move towards only using ItemTestReport instead of ItemFinish


Modified: py/branch/event/py/test2/session.py
==============================================================================
--- py/branch/event/py/test2/session.py	(original)
+++ py/branch/event/py/test2/session.py	Wed Jul 16 16:56:22 2008
@@ -59,7 +59,7 @@
     def _initfailurelist(self):
         failurelist = []
         def processfailures(event):
-            if isinstance(event, repevent.ItemFinish) and event.failed: 
+            if isinstance(event, repevent.ItemTestReport) and event.failed: 
                 failurelist.append(event) 
                 if self.config.option.exitfirst: 
                     self.shouldstop = True 

Modified: py/branch/event/py/test2/terminal/remote.py
==============================================================================
--- py/branch/event/py/test2/terminal/remote.py	(original)
+++ py/branch/event/py/test2/terminal/remote.py	Wed Jul 16 16:56:22 2008
@@ -136,5 +136,5 @@
     session.shouldclose = channel.isclosed 
     print "SLAVE: starting session.main()"
     failures = session.main()
-    failures = [config.get_collector_trail(ev.item) for ev in failures]
+    failures = [ev.trail for ev in failures]
     channel.send(failures)



More information about the pytest-commit mailing list