Skip to content

Commit

Permalink
Merge pull request #4999 from nicoddemus/cmdline_parse-early
Browse files Browse the repository at this point in the history
Docs: modules implementing pytest_cmdline_parse can be early-loaded
  • Loading branch information
nicoddemus committed Mar 26, 2019
2 parents 3e1971e + cea42ff commit aae0286
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/_pytest/hookspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aae0286

Please sign in to comment.