From cea42ff9e49d115be653c26c7612ff55cd921791 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Mon, 25 Mar 2019 18:43:06 -0300 Subject: [PATCH] Docs: modules implementing pytest_cmdline_parse can be early-loaded Related to #4974 --- src/_pytest/hookspec.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/_pytest/hookspec.py b/src/_pytest/hookspec.py index 0641e3bc5ac..28eb06b037c 100644 --- a/src/_pytest/hookspec.py +++ b/src/_pytest/hookspec.py @@ -99,7 +99,8 @@ def pytest_cmdline_parse(pluginmanager, args): Stops at first non-None result, see :ref:`firstresult` .. note:: - This hook will not be called for ``conftest.py`` files, only for setuptools plugins. + This hook will not be called for ``conftest.py`` files, only for setuptools plugins or + modules which implement this hook and are early-loaded with the ``-p`` flag. :param _pytest.config.PytestPluginManager pluginmanager: pytest plugin manager :param list[str] args: list of arguments passed on the command line