Commit b5d8204f authored by Antoine Pitrou's avatar Antoine Pitrou

Issue #10279: fix test_gc under Win64.

parent 08eeadac
...@@ -1370,10 +1370,10 @@ _PyGC_Fini(void) ...@@ -1370,10 +1370,10 @@ _PyGC_Fini(void)
&& garbage != NULL && PyList_GET_SIZE(garbage) > 0) { && garbage != NULL && PyList_GET_SIZE(garbage) > 0) {
char *message; char *message;
if (debug & DEBUG_UNCOLLECTABLE) if (debug & DEBUG_UNCOLLECTABLE)
message = "gc: %" PY_FORMAT_SIZE_T "d uncollectable objects at " \ message = "gc: %zd uncollectable objects at " \
"shutdown"; "shutdown";
else 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"; "shutdown; use gc.set_debug(gc.DEBUG_UNCOLLECTABLE) to list them";
if (PyErr_WarnFormat(PyExc_ResourceWarning, 0, message, if (PyErr_WarnFormat(PyExc_ResourceWarning, 0, message,
PyList_GET_SIZE(garbage)) < 0) PyList_GET_SIZE(garbage)) < 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment