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

Class CustomException

testing/code/test_excinfo.py:360–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358 assert str(excinfo1) == "<ExceptionInfo ValueError() tblen=4>"
359
360 class CustomException(Exception):
361 def __repr__(self):
362 return "custom_repr"
363
364 def raises() -> None:
365 raise CustomException()

Callers 1

raisesFunction · 0.85

Calls

no outgoing calls

Tested by 1

raisesFunction · 0.68