mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #477863: Print a warning at shutdown if gc.garbage is not empty.
This commit is contained in:
parent
2e5f1178ac
commit
696e03553b
7 changed files with 99 additions and 10 deletions
|
@ -404,6 +404,9 @@ Py_Finalize(void)
|
|||
while (PyGC_Collect() > 0)
|
||||
/* nothing */;
|
||||
#endif
|
||||
/* We run this while most interpreter state is still alive, so that
|
||||
debug information can be printed out */
|
||||
_PyGC_Fini();
|
||||
|
||||
/* Destroy all modules */
|
||||
PyImport_Cleanup();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue