diff --git a/src/_pytest/hookspec.py b/src/_pytest/hookspec.py index 6c5dd4b7c4a..919ac9fa3ae 100644 --- a/src/_pytest/hookspec.py +++ b/src/_pytest/hookspec.py @@ -941,6 +941,11 @@ def pytest_assertrepr_compare( *in* a string will be escaped. Note that all but the first line will be indented slightly, the intention is for the first line to be a summary. + .. note:: + + This hook is also called for passing assertions if the + :func:`pytest_assertion_pass` hook is implemented. + :param config: The pytest config object. :param op: The operator, e.g. `"=="`, `"!="`, `"not in"`. :param left: The left operand.