Do not print additional shutdown message when gc.DEBUG_SAVEALL is set

This commit is contained in:
Antoine Pitrou 2010-09-14 09:48:39 +00:00
parent 0055c421fe
commit 2ed94eb520
2 changed files with 11 additions and 5 deletions

View file

@ -1366,7 +1366,8 @@ PyGC_Collect(void)
void
_PyGC_Fini(void)
{
if (garbage != NULL && PyList_GET_SIZE(garbage) > 0) {
if (!(debug & DEBUG_SAVEALL)
&& garbage != NULL && PyList_GET_SIZE(garbage) > 0) {
PySys_WriteStderr(
"gc: "
"%" PY_FORMAT_SIZE_T "d uncollectable objects at shutdown:\n",