def METHOD_NAME(self):
    # Issue #10756: Make sure that an unnormalized exception is
    # handled properly
    atexit.register(lambda: 1 / 0)
    self.assertRaises(ZeroDivisionError, atexit._run_exitfuncs)
    self.assertIn("ZeroDivisionError", self.stream.getvalue())