MCPcopy Index your code
hub / github.com/RustPython/RustPython / report_failure

Method report_failure

Lib/doctest.py:1307–1312  ·  view source on GitHub ↗

Report that the given example failed.

(self, out, test, example, got)

Source from the content-addressed store, hash-verified

1305 out("ok\n")
1306
1307 def report_failure(self, out, test, example, got):
1308 """
1309 Report that the given example failed.
1310 """
1311 out(self._failure_header(test, example) +
1312 self._checker.output_difference(example, got, self.optionflags))
1313
1314 def report_unexpected_exception(self, out, test, example, exc_info):
1315 """

Callers 1

__runMethod · 0.95

Calls 2

_failure_headerMethod · 0.95
output_differenceMethod · 0.80

Tested by

no test coverage detected