def METHOD_NAME(self):
    returncode, events, stderr = self.run_python("test_unraisablehook")
    if returncode:
        self.fail(stderr)
    self.assertEqual(events[0][0], "sys.unraisablehook")
    self.assertEqual(
        events[0][2],
        "RuntimeError('nonfatal-error') Exception ignored for audit hook test",
    )