Fix a minor mistake in docs ("``match`` method" is actually talking about the `match` keyword parameter)

This commit is contained in:
Mihail Milushev 2023-09-17 22:27:36 +01:00
parent e7caaa0b3e
commit 5ace48ca5b
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ that a regular expression matches on the string representation of an exception
with pytest.raises(ValueError, match=r".* 123 .*"):
myfunc()
The regexp parameter of the ``match`` method is matched with the ``re.search``
The regexp parameter of the ``match`` parameter is matched with the ``re.search``
function, so in the above example ``match='123'`` would have worked as
well.