add a note about the deprecation of the pytest_namespace hook

This commit is contained in:
Ronny Pfannschmidt 2017-02-28 17:12:16 +01:00
parent 9b755f6ec6
commit 7d797b7dbf
1 changed files with 3 additions and 1 deletions

View File

@ -16,7 +16,9 @@ def pytest_addhooks(pluginmanager):
@hookspec(historic=True)
def pytest_namespace():
"""return dict of name->object to be made globally available in
"""
DEPRECATED: this hook causes direct monkeypatching on pytest, its use is strongly discouraged
return dict of name->object to be made globally available in
the pytest namespace. This hook is called at plugin registration
time.
"""