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