Skip to content

Commit 4f1afcc

Browse files
ericsnowcurrentlywarsaw
authored andcommitted
pythongh-102304: Fix Non-Debug Builds (pythongh-102846)
Some debug-only code slipped in with pythongh-102543. python#102304
1 parent 00962d2 commit 4f1afcc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Python/pystate.c

+2
Original file line numberDiff line numberDiff line change
@@ -482,8 +482,10 @@ _PyRuntimeState_Init(_PyRuntimeState *runtime)
482482
void
483483
_PyRuntimeState_Fini(_PyRuntimeState *runtime)
484484
{
485+
#ifdef Py_REF_DEBUG
485486
/* The reftotal is cleared by _Py_FinalizeRefTotal(). */
486487
assert(runtime->object_state.reftotal == 0);
488+
#endif
487489

488490
if (gilstate_tss_initialized(runtime)) {
489491
gilstate_tss_fini(runtime);

0 commit comments

Comments
 (0)