commit | 3ca2b8fd75043927f0bb03b8dac72d32beae255d | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@python.org> | Tue Dec 15 17:12:02 2020 +0100 |
committer | GitHub <noreply@github.com> | Tue Dec 15 17:12:02 2020 +0100 |
tree | 377eba1ac1a9a69d622a62fd3b33a86f82779d95 | |
parent | ceb420251c1d635520049fbb7b5269a73d63fb58 [diff] |
bpo-42639: atexit._run_exitfuncs() uses sys.unraisablehook (GH-23779) atexit._run_exitfuncs() now logs callback exceptions using sys.unraisablehook, rather than logging them directly into sys.stderr and raising the last exception. Run GeneralTest of test_atexit in a subprocess since it calls atexit._clear() which clears all atexit callbacks. _PyAtExit_Fini() sets state->callbacks to NULL.