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

Method dep_explicit

testing/test_recwarn.py:96–100  ·  view source on GitHub ↗
(self, i: int)

Source from the content-addressed store, hash-verified

94 return 42
95
96 def dep_explicit(self, i: int) -> None:
97 if i == 0:
98 warnings.warn_explicit(
99 "dep_explicit", category=DeprecationWarning, filename="hello", lineno=3
100 )
101
102 def test_deprecated_call_raises(self) -> None:
103 with pytest.raises(pytest.fail.Exception, match="No warnings of type"):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected