Merge pull request #5010 from garytyler/docupdate

Update docs for 'pytest_cmdline_parse' hook to note availability limi…
This commit is contained in:
Bruno Oliveira 2019-03-28 22:32:50 -03:00 committed by GitHub
commit 2812c087ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

1
changelog/4974.doc.rst Normal file
View File

@ -0,0 +1 @@
Update docs for ``pytest_cmdline_parse`` hook to note availability liminations

View File

@ -99,8 +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 or
modules which implement this hook and are early-loaded with the ``-p`` flag.
This hook will only be called for plugin classes passed to the ``plugins`` arg when using `pytest.main`_ to
perform an in-process test run.
:param _pytest.config.PytestPluginManager pluginmanager: pytest plugin manager
:param list[str] args: list of arguments passed on the command line