adapt to pluggy naming, rename pytest.hookspec_opts to pytest.hookspec,s ame with hookimpl_opts

--HG--
branch : pluggy1
This commit is contained in:
holger krekel
2015-05-06 10:08:08 +02:00
parent 5ea7f0342b
commit bddc88f09e
20 changed files with 81 additions and 75 deletions
+2 -2
View File
@@ -512,12 +512,12 @@ class Session(FSCollector):
def _makeid(self):
return ""
@pytest.hookimpl_opts(tryfirst=True)
@pytest.hookimpl(tryfirst=True)
def pytest_collectstart(self):
if self.shouldstop:
raise self.Interrupted(self.shouldstop)
@pytest.hookimpl_opts(tryfirst=True)
@pytest.hookimpl(tryfirst=True)
def pytest_runtest_logreport(self, report):
if report.failed and not hasattr(report, 'wasxfail'):
self._testsfailed += 1