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

Method test_excepthook

Lib/test/test_audit.py:91–98  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

89 self.do_test("test_posixsubprocess")
90
91 def test_excepthook(self):
92 returncode, events, stderr = self.run_python("test_excepthook")
93 if not returncode:
94 self.fail(f"Expected fatal exception\n{stderr}")
95
96 self.assertSequenceEqual(
97 [("sys.excepthook", " ", "RuntimeError('fatal-error')")], events
98 )
99
100 def test_unraisablehook(self):
101 import_helper.import_module("_testcapi")

Callers

nothing calls this directly

Calls 3

run_pythonMethod · 0.95
assertSequenceEqualMethod · 0.80
failMethod · 0.45

Tested by

no test coverage detected