[svn r63883] * moving many more events to become ordinary plugin hook calls.

* bit hackish because the code for handling the old events is
  also still there ...

--HG--
branch : trunk
This commit is contained in:
hpk
2009-04-09 01:33:48 +02:00
parent ae412d3757
commit e6234fdb61
23 changed files with 232 additions and 185 deletions

View File

@@ -137,10 +137,10 @@ def slave_runsession(channel, config, fullwidth, hasmarkup):
session.shouldclose = channel.isclosed
class Failures(list):
def pyevent__itemtestreport(self, rep):
def pytest_itemtestreport(self, rep):
if rep.failed:
self.append(rep)
pyevent__collectreport = pyevent__itemtestreport
pytest_collectreport = pytest_itemtestreport
failreports = Failures()
session.bus.register(failreports)