diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2023-03-20 17:28:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-20 17:28:13 (GMT) |
commit | 5c75b7a91ca7ad4133d5a7e9c245268bcfdd993e (patch) | |
tree | 46558df77df4302a5c8031998548d23c215ecaaa /Python/pystate.c | |
parent | 28d369e070652e8f2274101d72131e3140dfadf7 (diff) | |
download | cpython-5c75b7a91ca7ad4133d5a7e9c245268bcfdd993e.zip cpython-5c75b7a91ca7ad4133d5a7e9c245268bcfdd993e.tar.gz cpython-5c75b7a91ca7ad4133d5a7e9c245268bcfdd993e.tar.bz2 |
gh-102304: Fix Non-Debug Builds (gh-102846)
Some debug-only code slipped in with gh-102543.
https://github.com/python/cpython/issues/102304
Diffstat (limited to 'Python/pystate.c')
-rw-r--r-- | Python/pystate.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/pystate.c b/Python/pystate.c index 4d42135..60adb54 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -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); |