(self)
| 98 | ) |
| 99 | |
| 100 | def test_unraisablehook(self): |
| 101 | import_helper.import_module("_testcapi") |
| 102 | returncode, events, stderr = self.run_python("test_unraisablehook") |
| 103 | if returncode: |
| 104 | self.fail(stderr) |
| 105 | |
| 106 | self.assertEqual(events[0][0], "sys.unraisablehook") |
| 107 | self.assertEqual( |
| 108 | events[0][2], |
| 109 | "RuntimeError('nonfatal-error') Exception ignored for audit hook test", |
| 110 | ) |
| 111 | |
| 112 | def test_winreg(self): |
| 113 | import_helper.import_module("winreg") |
nothing calls this directly
no test coverage detected