Fix a minor mistake in docs ("``match`` method" is actually talking about the `match` keyword parameter)
This commit is contained in:
parent
e7caaa0b3e
commit
5ace48ca5b
|
@ -115,7 +115,7 @@ that a regular expression matches on the string representation of an exception
|
||||||
with pytest.raises(ValueError, match=r".* 123 .*"):
|
with pytest.raises(ValueError, match=r".* 123 .*"):
|
||||||
myfunc()
|
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
|
function, so in the above example ``match='123'`` would have worked as
|
||||||
well.
|
well.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue