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

Method __init__

src/_pytest/_code/code.py:455–466  ·  view source on GitHub ↗
(
        self,
        excinfo: Optional[Tuple[Type["E"], "E", TracebackType]],
        striptext: str = "",
        traceback: Optional[Traceback] = None,
        *,
        _ispytest: bool = False,
    )

Source from the content-addressed store, hash-verified

453 _traceback: Optional[Traceback]
454
455 def __init__(
456 self,
457 excinfo: Optional[Tuple[Type["E"], "E", TracebackType]],
458 striptext: str = "",
459 traceback: Optional[Traceback] = None,
460 *,
461 _ispytest: bool = False,
462 ) -> None:
463 check_ispytest(_ispytest)
464 self._excinfo = excinfo
465 self._striptext = striptext
466 self._traceback = traceback
467
468 @classmethod
469 def from_exc_info(

Callers

nothing calls this directly

Calls 1

check_ispytestFunction · 0.90

Tested by

no test coverage detected