re-add tryfirst/trylast marker documentation, mark it as to be removed

--HG--
branch : more_plugin
This commit is contained in:
holger krekel 2015-04-26 00:47:24 +02:00
parent 8e009ee31c
commit d2ea7387f2
1 changed files with 8 additions and 0 deletions

View File

@ -129,6 +129,14 @@ class PytestPluginManager(PluginManager):
return self.get_plugin(name)
def pytest_configure(self, config):
# XXX now that the pluginmanager exposes hookimpl_opts(tryfirst...)
# we should remove tryfirst/trylast as markers
config.addinivalue_line("markers",
"tryfirst: mark a hook implementation function such that the "
"plugin machinery will try to call it first/as early as possible.")
config.addinivalue_line("markers",
"trylast: mark a hook implementation function such that the "
"plugin machinery will try to call it last/as late as possible.")
for warning in self._warnings:
config.warn(code="I1", message=warning)