[py-svn] r61994 - in py/branch/pytestplugin/py/test: . plugin

hpk at codespeak.net hpk at codespeak.net
Wed Feb 18 10:33:59 CET 2009


Author: hpk
Date: Wed Feb 18 10:33:59 2009
New Revision: 61994

Modified:
   py/branch/pytestplugin/py/test/plugin/pytest_terminal.py
   py/branch/pytestplugin/py/test/session.py
Log:
port another event


Modified: py/branch/pytestplugin/py/test/plugin/pytest_terminal.py
==============================================================================
--- py/branch/pytestplugin/py/test/plugin/pytest_terminal.py	(original)
+++ py/branch/pytestplugin/py/test/plugin/pytest_terminal.py	Wed Feb 18 10:33:59 2009
@@ -175,7 +175,7 @@
                 self.stats.setdefault("skipped", []).append(ev)
                 self.write_fspath_result(ev.colitem.fspath, "S")
 
-    def rep_TestrunStart(self, ev):
+    def pyevent_testrunstart(self, ev):
         self.write_sep("=", "test session starts", bold=True)
         self._sessionstarttime = py.std.time.time()
         rev = py.__pkg__.getrev()
@@ -638,4 +638,5 @@
         if meth is not None:
             meth(event)
     rep.config.bus._bus.subscribe(dispatch)
+    rep.config.bus.subscribe_methods(rep)
 

Modified: py/branch/pytestplugin/py/test/session.py
==============================================================================
--- py/branch/pytestplugin/py/test/session.py	(original)
+++ py/branch/pytestplugin/py/test/session.py	Wed Feb 18 10:33:59 2009
@@ -86,7 +86,7 @@
 
     def sessionstarts(self):
         """ setup any neccessary resources ahead of the test run. """
-        self.bus.notify(sessionstarts=event.TestrunStart())
+        self.bus.notify(testrunstart=event.TestrunStart())
         # XXX the following is not used or neccessary for the DSession subclass
         self._failurelist = []
         self.bus.subscribe(self._processfailures)



More information about the pytest-commit mailing list