(self)
| 89 | ) |
| 90 | |
| 91 | def test_unraisablehook(self): |
| 92 | import_helper.import_module("_testcapi") |
| 93 | returncode, events, stderr = self.run_python("test_unraisablehook") |
| 94 | if returncode: |
| 95 | self.fail(stderr) |
| 96 | |
| 97 | self.assertEqual(events[0][0], "sys.unraisablehook") |
| 98 | self.assertEqual( |
| 99 | events[0][2], |
| 100 | "RuntimeError('nonfatal-error') Exception ignored for audit hook test", |
| 101 | ) |
| 102 | |
| 103 | def test_winreg(self): |
| 104 | import_helper.import_module("winreg") |
nothing calls this directly
no test coverage detected