commit | 2ed94eb520fa1ffe3a41e7a06849801a210f2978 | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Tue Sep 14 09:48:39 2010 +0000 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Tue Sep 14 09:48:39 2010 +0000 |
tree | 20007be0f93c11817bdca43028c3225f5808dccc | |
parent | 0055c421fed0d2b8e8760ba69fd7138ca77475c2 [diff] |
Do not print additional shutdown message when gc.DEBUG_SAVEALL is set
diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c index 7384327..a95bec7 100644 --- a/Modules/gcmodule.c +++ b/Modules/gcmodule.c
@@ -1366,7 +1366,8 @@ 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",