diff --git a/src/_pytest/python_api.py b/src/_pytest/python_api.py index c9d2cd3bd..29288187a 100644 --- a/src/_pytest/python_api.py +++ b/src/_pytest/python_api.py @@ -610,14 +610,6 @@ def raises( # noqa: F811 >>> assert exc_info.type is ValueError >>> assert exc_info.value.args[0] == "value must be 42" - .. deprecated:: 4.1 - - In the context manager form you may use the keyword argument - ``message`` to specify a custom failure message that will be displayed - in case the ``pytest.raises`` check fails. This has been deprecated as it - is considered error prone as users often mean to use ``match`` instead. - See :ref:`the deprecation docs ` for a workaround. - .. note:: When using ``pytest.raises`` as a context manager, it's worthwhile to