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

Method dep

testing/test_recwarn.py:91–94  ·  view source on GitHub ↗
(self, i: int, j: Optional[int] = None)

Source from the content-addressed store, hash-verified

89 """test pytest.deprecated_call()"""
90
91 def dep(self, i: int, j: Optional[int] = None) -> int:
92 if i == 0:
93 warnings.warn("is deprecated", DeprecationWarning, stacklevel=1)
94 return 42
95
96 def dep_explicit(self, i: int) -> None:
97 if i == 0:

Callers

nothing calls this directly

Calls 1

warnMethod · 0.45

Tested by

no test coverage detected