MCPcopy
hub / github.com/pytest-dev/pytest / toterminal

Method toterminal

src/_pytest/_code/code.py:1314–1320  ·  view source on GitHub ↗
(self, tw: TerminalWriter)

Source from the content-addressed store, hash-verified

1312 self.chain = chain
1313
1314 def toterminal(self, tw: TerminalWriter) -> None:
1315 for reprtraceback, reprcrash, description in self.chain:
1316 reprtraceback.toterminal(tw)
1317 if description is not None:
1318 tw.line("")
1319 tw.line(description, yellow=True)
1320 super().toterminal(tw)
1321
1322
1323@dataclasses.dataclass(eq=False)

Callers

nothing calls this directly

Calls 2

toterminalMethod · 0.45
lineMethod · 0.45

Tested by

no test coverage detected