Update src/_pytest/python_api.py

This commit is contained in:
Bruno Oliveira 2023-07-20 08:23:14 -03:00 committed by GitHub
parent 21d628898e
commit ba3f034ecc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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 <https://peps.python.org/pep-0678/>` `__notes__`
of the exception using :func:`re.search`.
representation of the exception and its `PEP-678 <https://peps.python.org/pep-0678/>` `__notes__`
using :func:`re.search`.
To match a literal string that may contain :ref:`special characters
<re-syntax>`, the pattern can first be escaped with :func:`re.escape`.