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

Class Exit

src/_pytest/outcomes.py:80–88  ·  view source on GitHub ↗

Raised for immediate program exits (no tracebacks/summaries).

Source from the content-addressed store, hash-verified

78
79
80class Exit(Exception):
81 """Raised for immediate program exits (no tracebacks/summaries)."""
82
83 def __init__(
84 self, msg: str = "unknown reason", returncode: Optional[int] = None
85 ) -> None:
86 self.msg = msg
87 self.returncode = returncode
88 super().__init__(msg)
89
90
91# Elaborate hack to work around https://github.com/python/mypy/issues/2087.

Callers 1

exitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected