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",