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

Function pytest_internalerror

src/_pytest/hookspec.py:873–881  ·  view source on GitHub ↗

Called for internal errors. Return True to suppress the fallback handling of printing an INTERNALERROR message directly to sys.stderr.

(
    excrepr: "ExceptionRepr",
    excinfo: "ExceptionInfo[BaseException]",
)

Source from the content-addressed store, hash-verified

871
872
873def pytest_internalerror(
874 excrepr: "ExceptionRepr",
875 excinfo: "ExceptionInfo[BaseException]",
876) -> Optional[bool]:
877 """Called for internal errors.
878
879 Return True to suppress the fallback handling of printing an
880 INTERNALERROR message directly to sys.stderr.
881 """
882
883
884def pytest_keyboard_interrupt(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected