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

Method get_report

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

Source from the content-addressed store, hash-verified

3137
3138 @cpython_only
3139 def get_report(self, e):
3140 from _testcapi import exception_print
3141 e = self.get_exception(e)
3142 with captured_output("stderr") as s:
3143 exception_print(e)
3144 return s.getvalue()
3145
3146
3147class LimitTests(unittest.TestCase):

Callers 15

test_simpleMethod · 0.45
test_causeMethod · 0.45
test_contextMethod · 0.45
test_cause_recursiveMethod · 0.45
test_message_noneMethod · 0.45

Calls 3

captured_outputFunction · 0.90
get_exceptionMethod · 0.45
getvalueMethod · 0.45

Tested by

no test coverage detected