(self, out, test, example, got)
| 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) + |
| 2333 | self._checker.output_difference(example, got, self.optionflags).rstrip('\n')) |
| 2334 | exc = self._test_case.failureException(msg) |
| 2335 | tb = self._add_traceback(None, test, example) |
| 2336 | exc_info = (type(exc), exc, tb) |
| 2337 | self._test_result.addSubTest(self._test_case, self._subTest(), exc_info) |
| 2338 | |
| 2339 | def _add_traceback(self, traceback, test, example): |
| 2340 | if test.lineno is None or example.lineno is None: |
nothing calls this directly
no test coverage detected