Update python_api.py

This commit is contained in:
Peter Schutt 2019-05-07 10:10:25 +10:00 committed by GitHub
parent 8b34d981fc
commit 8605ed2a15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -561,7 +561,7 @@ def raises(expected_exception, *args, **kwargs):
:kwparam match: if specified, a string containing a regular expression, :kwparam match: if specified, a string containing a regular expression,
or a regular expression object, that is tested against the string 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.match``. To match a literal
string that may contain ``special characters``__, the pattern can string that may contain `special characters`__, the pattern can
first be escaped with ``re.escape``. first be escaped with ``re.escape``.
__ https://docs.python.org/3/library/re.html#regular-expression-syntax __ https://docs.python.org/3/library/re.html#regular-expression-syntax