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

Method test_function

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

Source from the content-addressed store, hash-verified

233 pytest.warns(RuntimeWarning, lambda: warnings.warn("w3", RuntimeWarning))
234
235 def test_function(self) -> None:
236 pytest.warns(
237 SyntaxWarning, lambda msg: warnings.warn(msg, SyntaxWarning), "syntax"
238 )
239
240 def test_warning_tuple(self) -> None:
241 pytest.warns(

Callers

nothing calls this directly

Calls 1

warnMethod · 0.45

Tested by

no test coverage detected