From f6f456f95092142c4b6d038b839975bf7db4d1f2 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Wed, 3 Dec 2025 15:24:17 +0100 Subject: [PATCH] gh-142038: Expand guard for types_world_is_stopped() to fix debug builds without assertions (#142039) --- Objects/typeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 4c6ff51493f7..cbe0215359e2 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -81,7 +81,7 @@ class object "PyObject *" "&PyBaseObject_Type" #define END_TYPE_DICT_LOCK() Py_END_CRITICAL_SECTION2() -#ifndef NDEBUG +#if !defined(NDEBUG) || defined(Py_DEBUG) // Return true if the world is currently stopped. static bool types_world_is_stopped(void) -- 2.47.3