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

Method test_deprecated_call_raises

testing/test_recwarn.py:147–150  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

145 )
146
147 def test_deprecated_call_raises(self) -> None:
148 with pytest.raises(pytest.fail.Exception, match="No warnings of type"):
149 with pytest.deprecated_call():
150 self.dep(3, 5)
151
152 def test_deprecated_call(self) -> None:
153 with pytest.deprecated_call():

Callers 1

Calls 1

depMethod · 0.95

Tested by

no test coverage detected