MCPcopy
hub / github.com/pytest-dev/pytest / __init__

Method __init__

src/_pytest/runner.py:308–325  ·  view source on GitHub ↗
(
        self,
        result: TResult | None,
        excinfo: ExceptionInfo[BaseException] | None,
        start: float,
        stop: float,
        duration: float,
        when: Literal["collect", "setup", "call", "teardown"],
        *,
        _ispytest: bool = False,
    )

Source from the content-addressed store, hash-verified

306 when: Literal["collect", "setup", "call", "teardown"]
307
308 def __init__(
309 self,
310 result: TResult | None,
311 excinfo: ExceptionInfo[BaseException] | None,
312 start: float,
313 stop: float,
314 duration: float,
315 when: Literal["collect", "setup", "call", "teardown"],
316 *,
317 _ispytest: bool = False,
318 ) -> None:
319 check_ispytest(_ispytest)
320 self._result = result
321 self.excinfo = excinfo
322 self.start = start
323 self.stop = stop
324 self.duration = duration
325 self.when = when
326
327 @property
328 def result(self) -> TResult:

Callers

nothing calls this directly

Calls 1

check_ispytestFunction · 0.90

Tested by

no test coverage detected