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

Class ReprFailDoctest

src/_pytest/doctest.py:157–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155
156
157class ReprFailDoctest(TerminalRepr):
158 def __init__(
159 self, reprlocation_lines: Sequence[Tuple[ReprFileLocation, Sequence[str]]]
160 ) -> None:
161 self.reprlocation_lines = reprlocation_lines
162
163 def toterminal(self, tw: TerminalWriter) -> None:
164 for reprlocation, lines in self.reprlocation_lines:
165 for line in lines:
166 tw.line(line)
167 reprlocation.toterminal(tw)
168
169
170class MultipleDoctestFailures(Exception):

Callers 1

repr_failureMethod · 0.85

Calls

no outgoing calls

Tested by 1

repr_failureMethod · 0.68