Merge pull request #4999 from nicoddemus/cmdline_parse-early

Docs: modules implementing pytest_cmdline_parse can be early-loaded
This commit is contained in:
Bruno Oliveira 2019-03-26 18:14:31 -03:00 committed by GitHub
commit aae02863db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -99,7 +99,8 @@ def pytest_cmdline_parse(pluginmanager, args):
Stops at first non-None result, see :ref:`firstresult` Stops at first non-None result, see :ref:`firstresult`
.. note:: .. 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 _pytest.config.PytestPluginManager pluginmanager: pytest plugin manager
:param list[str] args: list of arguments passed on the command line :param list[str] args: list of arguments passed on the command line