From de854c6ee17de239f609be4e22a01ed68ff15e55 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 22 Feb 2020 19:24:00 +0100 Subject: [PATCH] doc: `pytest.raises`: remove mention of removed `message` (#6793) Follow-up to 13f7f27fd. --- src/_pytest/python_api.py | 8 -------- 1 file changed, 8 deletions(-) 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