mirror of
https://github.com/python/cpython.git
synced 2025-12-09 18:48:05 +00:00
Issue #10279: fix test_gc under Win64.
This commit is contained in:
parent
08eeadac27
commit
b5d8204f0f
1 changed files with 2 additions and 2 deletions
|
|
@ -1370,10 +1370,10 @@ _PyGC_Fini(void)
|
|||
&& garbage != NULL && PyList_GET_SIZE(garbage) > 0) {
|
||||
char *message;
|
||||
if (debug & DEBUG_UNCOLLECTABLE)
|
||||
message = "gc: %" PY_FORMAT_SIZE_T "d uncollectable objects at " \
|
||||
message = "gc: %zd uncollectable objects at " \
|
||||
"shutdown";
|
||||
else
|
||||
message = "gc: %" PY_FORMAT_SIZE_T "d uncollectable objects at " \
|
||||
message = "gc: %zd uncollectable objects at " \
|
||||
"shutdown; use gc.set_debug(gc.DEBUG_UNCOLLECTABLE) to list them";
|
||||
if (PyErr_WarnFormat(PyExc_ResourceWarning, 0, message,
|
||||
PyList_GET_SIZE(garbage)) < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue