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

Method __init__

src/_pytest/outcomes.py:83–88  ·  view source on GitHub ↗
(
        self, msg: str = "unknown reason", returncode: Optional[int] = None
    )

Source from the content-addressed store, hash-verified

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 2

__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected