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

Method tb

src/_pytest/_code/code.py:544–549  ·  view source on GitHub ↗

The exception raw traceback.

(self)

Source from the content-addressed store, hash-verified

542
543 @property
544 def tb(self) -> TracebackType:
545 """The exception raw traceback."""
546 assert (
547 self._excinfo is not None
548 ), ".tb can only be used after the context manager exits"
549 return self._excinfo[2]
550
551 @property
552 def typename(self) -> str:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected