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

Class CustomException

testing/code/test_excinfo.py:335–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333 assert str(excinfo1) == "<ExceptionInfo ValueError() tblen=4>"
334
335 class CustomException(Exception):
336 def __repr__(self):
337 return "custom_repr"
338
339 def raises() -> None:
340 raise CustomException()

Callers 1

raisesFunction · 0.85

Calls

no outgoing calls

Tested by 1

raisesFunction · 0.68