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

Method test_excepthook

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

Source from the content-addressed store, hash-verified

80 self.do_test("test_mmap")
81
82 def test_excepthook(self):
83 returncode, events, stderr = self.run_python("test_excepthook")
84 if not returncode:
85 self.fail(f"Expected fatal exception\n{stderr}")
86
87 self.assertSequenceEqual(
88 [("sys.excepthook", " ", "RuntimeError('fatal-error')")], events
89 )
90
91 def test_unraisablehook(self):
92 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