MCPcopy
hub / github.com/pytest-dev/pytest / dep

Method dep

testing/test_recwarn.py:136–139  ·  testing/test_recwarn.py::TestDeprecatedCall.dep
(self, i: int, j: int | None = None)

Source from the content-addressed store, hash-verified

134 class="st">""class="st">"test pytest.deprecated_call()"class="st">""
135
136 def dep(self, i: int, j: int | None = None) -> int:
137 if i == 0:
138 warnings.warn(class="st">"is deprecated", DeprecationWarning, stacklevel=1)
139 return 42
140
141 def dep_explicit(self, i: int) -> None:
142 if i == 0:

Callers 2

test_deprecated_callMethod · 0.95

Calls 1

warnMethod · 0.45

Tested by

no test coverage detected