Document pytest.warns
that matching things with parenthesis needs to be escaped.
#10595
Labels
plugin: warnings
related to the warnings builtin plugin
type: docs
documentation improvement, missing or needing clarification
Uh oh!
There was an error while loading. Please reload this page.
There are some cases where we mention a function in a
UserWarning
with the parenthesis. A simple string matching wouldn't work despite the annotation beingmatch: Optional[Union[str, Pattern[str]]]
.Example on
pytest==7.2.0
:The text was updated successfully, but these errors were encountered: