MCPcopy Create free account
hub / github.com/pytest-dev/pytest / warns

Function warns

src/_pytest/recwarn.py:86–91  ·  view source on GitHub ↗
(
    expected_warning: Union[Type[Warning], Tuple[Type[Warning], ...]] = ...,
    *,
    match: Optional[Union[str, Pattern[str]]] = ...,
)

Source from the content-addressed store, hash-verified

84
85@overload
86def warns(
87 expected_warning: Union[Type[Warning], Tuple[Type[Warning], ...]] = ...,
88 *,
89 match: Optional[Union[str, Pattern[str]]] = ...,
90) -> "WarningsChecker":
91 ...
92
93
94@overload

Callers 1

deprecated_callFunction · 0.85

Calls 2

WarningsCheckerClass · 0.85
funcFunction · 0.70

Tested by

no test coverage detected