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

Function raise_assertion

testing/test_runner.py:492–493  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

490
491 # Newlines are escaped.
492 def raise_assertion():
493 assert 0, "assert_msg"
494
495 ci3 = runner.CallInfo.from_call(raise_assertion, "call")
496 assert repr(ci3) == f"<CallInfo when='call' excinfo={ci3.excinfo!r}>"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected