From ba3f034ecc0b855c9fff1bf31e6bc102ade527d6 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Thu, 20 Jul 2023 08:23:14 -0300 Subject: [PATCH] Update src/_pytest/python_api.py --- src/_pytest/python_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_pytest/python_api.py b/src/_pytest/python_api.py index af7a90147..27826863e 100644 --- a/src/_pytest/python_api.py +++ b/src/_pytest/python_api.py @@ -812,8 +812,8 @@ def raises( # noqa: F811 :kwparam str | typing.Pattern[str] | None match: If specified, a string containing a regular expression, or a regular expression object, that is tested against the string - representation or `PEP-678 ` `__notes__` - of the exception using :func:`re.search`. + representation of the exception and its `PEP-678 ` `__notes__` + using :func:`re.search`. To match a literal string that may contain :ref:`special characters `, the pattern can first be escaped with :func:`re.escape`.