Skip to content

Commit

Permalink
pytest_assertion_pass is no longer considered experimental (#8967)
Browse files Browse the repository at this point in the history
* `pytest_assertion_pass` is no longer considered `experimental`

* adding changelog
  • Loading branch information
symonk committed Aug 3, 2021
1 parent 599e3df commit bacc849
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 2 additions & 0 deletions changelog/8967.trivial.rst
@@ -0,0 +1,2 @@
:func:`pytest_assertion_pass <_pytest.hookspec.pytest_assertion_pass>` is no longer considered experimental and
future changes to it will be considered more carefully.
9 changes: 1 addition & 8 deletions src/_pytest/hookspec.py
Expand Up @@ -635,7 +635,7 @@ def pytest_assertrepr_compare(


def pytest_assertion_pass(item: "Item", lineno: int, orig: str, expl: str) -> None:
"""**(Experimental)** Called whenever an assertion passes.
"""Called whenever an assertion passes.
.. versionadded:: 5.0
Expand All @@ -659,13 +659,6 @@ def pytest_assertion_pass(item: "Item", lineno: int, orig: str, expl: str) -> No
:param int lineno: Line number of the assert statement.
:param str orig: String with the original assertion.
:param str expl: String with the assert explanation.
.. note::
This hook is **experimental**, so its parameters or even the hook itself might
be changed/removed without warning in any future pytest release.
If you find this hook useful, please share your feedback in an issue.
"""


Expand Down

0 comments on commit bacc849

Please sign in to comment.