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

Function raises

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

Source from the content-addressed store, hash-verified

362 return "custom_repr"
363
364 def raises() -> None:
365 raise CustomException()
366
367 with pytest.raises(CustomException) as excinfo2:
368 raises()

Callers 1

test_excinfo_repr_strFunction · 0.70

Calls 1

CustomExceptionClass · 0.85

Tested by

no test coverage detected