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

Method __init__

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

Source from the content-addressed store, hash-verified

283 when: "Literal['collect', 'setup', 'call', 'teardown']"
284
285 def __init__(
286 self,
287 result: Optional[TResult],
288 excinfo: Optional[ExceptionInfo[BaseException]],
289 start: float,
290 stop: float,
291 duration: float,
292 when: "Literal['collect', 'setup', 'call', 'teardown']",
293 *,
294 _ispytest: bool = False,
295 ) -> None:
296 check_ispytest(_ispytest)
297 self._result = result
298 self.excinfo = excinfo
299 self.start = start
300 self.stop = stop
301 self.duration = duration
302 self.when = when
303
304 @property
305 def result(self) -> TResult:

Callers

nothing calls this directly

Calls 1

check_ispytestFunction · 0.90

Tested by

no test coverage detected