Skip to content

Commit 2812c08

Browse files
authored
Merge pull request #5010 from garytyler/docupdate
Update docs for 'pytest_cmdline_parse' hook to note availability limi…
2 parents 0ac069d + 403f556 commit 2812c08

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

changelog/4974.doc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update docs for ``pytest_cmdline_parse`` hook to note availability liminations

src/_pytest/hookspec.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ def pytest_cmdline_parse(pluginmanager, args):
9999
Stops at first non-None result, see :ref:`firstresult`
100100
101101
.. note::
102-
This hook will not be called for ``conftest.py`` files, only for setuptools plugins or
103-
modules which implement this hook and are early-loaded with the ``-p`` flag.
102+
This hook will only be called for plugin classes passed to the ``plugins`` arg when using `pytest.main`_ to
103+
perform an in-process test run.
104104
105105
:param _pytest.config.PytestPluginManager pluginmanager: pytest plugin manager
106106
:param list[str] args: list of arguments passed on the command line

0 commit comments

Comments
 (0)