(self)
| 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") |
nothing calls this directly
no test coverage detected