Skip to content

Commit

Permalink
Improve docs for issue_config_time_warning function
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus committed Sep 3, 2020
1 parent f188d97 commit 01ffea7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/_pytest/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1232,6 +1232,9 @@ def issue_config_time_warning(self, warning: Warning, stacklevel: int) -> None:
During ``pytest_configure`` we can't capture warnings using the ``catch_warnings_for_item``
function because it is not possible to have hookwrappers around ``pytest_configure``.
This function is mainly intended for plugins that need to issue warnings during
``pytest_configure`` (or similar stages).
:param warning: The warning instance.
:param stacklevel: stacklevel forwarded to warnings.warn.
"""
Expand Down

0 comments on commit 01ffea7

Please sign in to comment.