From bacc8498e93d1b84fa7e8deb282d832b703fba86 Mon Sep 17 00:00:00 2001 From: Simon K Date: Tue, 3 Aug 2021 14:31:18 +0100 Subject: [PATCH] `pytest_assertion_pass` is no longer considered `experimental` (#8967) * `pytest_assertion_pass` is no longer considered `experimental` * adding changelog --- changelog/8967.trivial.rst | 2 ++ src/_pytest/hookspec.py | 9 +-------- 2 files changed, 3 insertions(+), 8 deletions(-) create mode 100644 changelog/8967.trivial.rst diff --git a/changelog/8967.trivial.rst b/changelog/8967.trivial.rst new file mode 100644 index 000000000..d5f773241 --- /dev/null +++ b/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. diff --git a/src/_pytest/hookspec.py b/src/_pytest/hookspec.py index 4fe3cf4b4..29a713b00 100644 --- a/src/_pytest/hookspec.py +++ b/src/_pytest/hookspec.py @@ -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 @@ -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. """