diff --git a/Python/uniqueid.c b/Python/uniqueid.c index c326e3ae29541f..8c158b24d2d694 100644 --- a/Python/uniqueid.c +++ b/Python/uniqueid.c @@ -220,7 +220,7 @@ _PyObject_FinalizeUniqueIdPool(PyInterpreterState *interp) if (obj != NULL) { Py_ssize_t id = clear_unique_id(obj); (void)id; - assert(id == i); + assert(id == i + 1); } } PyMem_Free(pool->table);