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

Method get_report

Lib/test/test_traceback.py:3122–3129  ·  view source on GitHub ↗
(self, e)

Source from the content-addressed store, hash-verified

3120 #
3121
3122 def get_report(self, e):
3123 e = self.get_exception(e)
3124 s = ''.join(
3125 traceback.format_exception(type(e), e, e.__traceback__))
3126 with captured_output("stderr") as sio:
3127 traceback.print_exception(type(e), e, e.__traceback__)
3128 self.assertEqual(sio.getvalue(), s)
3129 return s
3130
3131
3132@force_not_colorized_test_class

Callers

nothing calls this directly

Calls 5

captured_outputFunction · 0.90
get_exceptionMethod · 0.45
joinMethod · 0.45
assertEqualMethod · 0.45
getvalueMethod · 0.45

Tested by

no test coverage detected