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

Function raises

testing/code/test_excinfo.py:339–340  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

337 return "custom_repr"
338
339 def raises() -> None:
340 raise CustomException()
341
342 excinfo2 = pytest.raises(CustomException, raises)
343 assert repr(excinfo2) == "<ExceptionInfo custom_repr tblen=2>"

Callers

nothing calls this directly

Calls 1

CustomExceptionClass · 0.85

Tested by

no test coverage detected