Skip to content

Commit bacc849

Browse files
authored
pytest_assertion_pass is no longer considered experimental (#8967)
* `pytest_assertion_pass` is no longer considered `experimental` * adding changelog
1 parent 599e3df commit bacc849

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

changelog/8967.trivial.rst

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
:func:`pytest_assertion_pass <_pytest.hookspec.pytest_assertion_pass>` is no longer considered experimental and
2+
future changes to it will be considered more carefully.

src/_pytest/hookspec.py

+1-8
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ def pytest_assertrepr_compare(
635635

636636

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

671664

0 commit comments

Comments
 (0)