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

Method test_deprecated_call_raises

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

Source from the content-addressed store, hash-verified

100 )
101
102 def test_deprecated_call_raises(self) -> None:
103 with pytest.raises(pytest.fail.Exception, match="No warnings of type"):
104 pytest.deprecated_call(self.dep, 3, 5)
105
106 def test_deprecated_call(self) -> None:
107 pytest.deprecated_call(self.dep, 0, 5)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected