mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Do not print additional shutdown message when gc.DEBUG_SAVEALL is set
This commit is contained in:
parent
0055c421fe
commit
2ed94eb520
2 changed files with 11 additions and 5 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue