We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c06d038 commit 8dd5ae7Copy full SHA for 8dd5ae7
src/_pytest/python_api.py
@@ -580,7 +580,7 @@ def raises( # noqa: F811
580
(This is only used when ``pytest.raises`` is used as a context manager,
581
and passed through to the function otherwise.
582
When using ``pytest.raises`` as a function, you can use:
583
- ``pytest.raises(Exc, func, …).match("my pattern")``.)
+ ``pytest.raises(Exc, func, match="passed on").match("my pattern")``.)
584
585
__ https://docs.python.org/3/library/re.html#regular-expression-syntax
586
0 commit comments