[svn r63938] Changed methods pyevent_* to pytest_* due to the changed plugin-API.

--HG--
branch : trunk
This commit is contained in:
mzeidler 2009-04-10 15:02:36 +02:00
parent 59bd09ce9a
commit 696734ec2f
1 changed files with 4 additions and 2 deletions

View File

@ -314,13 +314,15 @@ class CoveragePlugin:
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()