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

Method value

src/_pytest/_code/code.py:536–541  ·  view source on GitHub ↗

The exception value.

(self)

Source from the content-addressed store, hash-verified

534
535 @property
536 def value(self) -> E:
537 """The exception value."""
538 assert (
539 self._excinfo is not None
540 ), ".value can only be used after the context manager exits"
541 return self._excinfo[1]
542
543 @property
544 def tb(self) -> TracebackType:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected