Context manager catching unraisable exception using sys.unraisablehook().
test.support/catch_unraisable_exception
catch_unraisable_exception