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

Method get_report

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

Source from the content-addressed store, hash-verified

3193 #
3194
3195 def get_report(self, e):
3196 e = self.get_exception(e)
3197 s = ''.join(
3198 traceback.format_exception(type(e), e, e.__traceback__))
3199 with captured_output("stderr") as sio:
3200 traceback.print_exception(type(e), e, e.__traceback__)
3201 self.assertEqual(sio.getvalue(), s)
3202 return s
3203
3204 @unittest.expectedFailure # TODO: RUSTPYTHON; Diff is 1103 characters long. Set self.maxDiff to None to see it.
3205 def test_exception_group_wrapped_naked(self):

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected