MCPcopy Index your code
hub / github.com/python/cpython / report_failure

Method report_failure

Lib/doctest.py:1332–1337  ·  view source on GitHub ↗

Report that the given example failed.

(self, out, test, example, got)

Source from the content-addressed store, hash-verified

1330 out("ok\n")
1331
1332 def report_failure(self, out, test, example, got):
1333 """
1334 Report that the given example failed.
1335 """
1336 out(self._failure_header(test, example) +
1337 self._checker.output_difference(example, got, self.optionflags))
1338
1339 def report_unexpected_exception(self, out, test, example, exc_info):
1340 """

Callers 1

__runMethod · 0.95

Calls 2

_failure_headerMethod · 0.95
output_differenceMethod · 0.80

Tested by

no test coverage detected