Fix documentation of pytest.raises(match=...)

This commit is contained in:
Tim Hoffmann
2019-05-19 15:56:19 +02:00
parent ee52a8a5f8
commit b27e40cbf1
2 changed files with 6 additions and 5 deletions

View File

@@ -559,7 +559,7 @@ def raises(expected_exception, *args, **kwargs):
:kwparam match: if specified, a string containing a regular expression,
or a regular expression object, that is tested against the string
representation of the exception using ``re.match``. To match a literal
representation of the exception using ``re.search``. To match a literal
string that may contain `special characters`__, the pattern can
first be escaped with ``re.escape``.