MCPcopy Index your code
hub / github.com/ipython/ipython / ReprFailDoctest

Class ReprFailDoctest

IPython/testing/plugin/pytest_ipdoctest.py:185–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183
184
185class ReprFailDoctest(TerminalRepr):
186 def __init__(
187 self, reprlocation_lines: Sequence[Tuple[ReprFileLocation, Sequence[str]]]
188 ) -> None:
189 self.reprlocation_lines = reprlocation_lines
190
191 def toterminal(self, tw: TerminalWriter) -> None:
192 for reprlocation, lines in self.reprlocation_lines:
193 for line in lines:
194 tw.line(line)
195 reprlocation.toterminal(tw)
196
197
198class MultipleDoctestFailures(Exception):

Callers 1

repr_failureMethod · 0.85

Calls

no outgoing calls

Tested by 1

repr_failureMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…