Issue #477863: Print a warning at shutdown if gc.garbage is not empty.

This commit is contained in:
Antoine Pitrou 2010-08-08 22:18:46 +00:00
parent 2e5f1178ac
commit 696e03553b
7 changed files with 99 additions and 10 deletions

View file

@ -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();