[py-svn] r63938 - py/trunk/contrib/pytest_coverage

mzeidler at codespeak.net mzeidler at codespeak.net
Fri Apr 10 15:02:36 CEST 2009


Author: mzeidler
Date: Fri Apr 10 15:02:36 2009
New Revision: 63938

Modified:
   py/trunk/contrib/pytest_coverage/__init__.py
Log:
Changed methods pyevent_* to pytest_* due to the changed plugin-API.

Modified: py/trunk/contrib/pytest_coverage/__init__.py
==============================================================================
--- py/trunk/contrib/pytest_coverage/__init__.py	(original)
+++ py/trunk/contrib/pytest_coverage/__init__.py	Fri Apr 10 15:02:36 2009
@@ -314,13 +314,15 @@
                         dest = os.path.join(dir_annotate_output, r)
                         shutil.copy(src, dest)
 
-    def pyevent__collectionstart(self, collector):
+    def pytest_collectstart(self, collector):
         if isinstance(collector, py.__.test.pycollect.Module):
             COVERAGE_MODULES.update(getattr(collector.obj, 
                 'COVERAGE_MODULES', []))
 
-    def pyevent__testrunstart(self):
+    def pytest_testrunstart(self):
+        print "self.coverage", self.coverage
         if hasattr(self, 'coverage'):
+            print "START coverage"
             self.coverage.erase()
             self.coverage.start()
 



More information about the pytest-commit mailing list