Skip to content

Commit c808cae

Browse files
committed
Fix a minor mistake in docs ("match method" is actually talking about the match keyword parameter)
1 parent 4f968c6 commit c808cae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/en/how-to/assert.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ that a regular expression matches on the string representation of an exception
115115
with pytest.raises(ValueError, match=r".* 123 .*"):
116116
myfunc()
117117
118-
The regexp parameter of the ``match`` method is matched with the ``re.search``
118+
The regexp parameter of the ``match`` parameter is matched with the ``re.search``
119119
function, so in the above example ``match='123'`` would have worked as
120120
well.
121121

0 commit comments

Comments
 (0)