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

Method report_unexpected_exception

Lib/doctest.py:2326–2329  ·  view source on GitHub ↗
(self, out, test, example, exc_info)

Source from the content-addressed store, hash-verified

2324 self._test_result.addSubTest(self._test_case, self._subTest(), None)
2325
2326 def report_unexpected_exception(self, out, test, example, exc_info):
2327 tb = self._add_traceback(exc_info[2], test, example)
2328 exc_info = (*exc_info[:2], tb)
2329 self._test_result.addSubTest(self._test_case, self._subTest(), exc_info)
2330
2331 def report_failure(self, out, test, example, got):
2332 msg = ('Failed example:\n' + _indent(example.source) +

Callers

nothing calls this directly

Calls 3

_add_tracebackMethod · 0.95
_subTestMethod · 0.95
addSubTestMethod · 0.45

Tested by

no test coverage detected