def METHOD_NAME(self):
    returncode, events, stderr = self.run_python("test_excepthook")
    if not returncode:
        self.fail(f"Expected fatal exception\n{stderr}")
    self.assertSequenceEqual(
        [("sys.excepthook", " ", "RuntimeError('fatal-error')")], events
    )