Skip to content

Commit

Permalink
pythongh-102304: Fix Non-Debug Builds (pythongh-102846)
Browse files Browse the repository at this point in the history
Some debug-only code slipped in with pythongh-102543.

python#102304
  • Loading branch information
ericsnowcurrently authored and warsaw committed Apr 11, 2023
1 parent 00962d2 commit 4f1afcc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Python/pystate.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,10 @@ _PyRuntimeState_Init(_PyRuntimeState *runtime)
void
_PyRuntimeState_Fini(_PyRuntimeState *runtime)
{
#ifdef Py_REF_DEBUG
/* The reftotal is cleared by _Py_FinalizeRefTotal(). */
assert(runtime->object_state.reftotal == 0);
#endif

if (gilstate_tss_initialized(runtime)) {
gilstate_tss_fini(runtime);
Expand Down

0 comments on commit 4f1afcc

Please sign in to comment.