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

Method __attrs_post_init__

src/_pytest/_code/code.py:1003–1008  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1001 chain: Sequence[Tuple["ReprTraceback", Optional["ReprFileLocation"], Optional[str]]]
1002
1003 def __attrs_post_init__(self) -> None:
1004 super().__attrs_post_init__()
1005 # reprcrash and reprtraceback of the outermost (the newest) exception
1006 # in the chain.
1007 self.reprtraceback = self.chain[-1][0]
1008 self.reprcrash = self.chain[-1][1]
1009
1010 def toterminal(self, tw: TerminalWriter) -> None:
1011 for element in self.chain:

Callers

nothing calls this directly

Calls 1

__attrs_post_init__Method · 0.45

Tested by

no test coverage detected