MCPcopy Index your code
hub / github.com/python/mypy / assertDomainError

Function assertDomainError

mypyc/test-data/fixtures/testutil.py:54–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52 assert False, f"Expected {typ.__name__} but got no exception"
53
54def assertDomainError() -> Any:
55 return assertRaises(ValueError, "math domain error")
56
57def assertMathRangeError() -> Any:
58 return assertRaises(OverflowError, "math range error")

Callers

nothing calls this directly

Calls 1

assertRaisesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…