Skip to content

Commit f6f456f

Browse files
authored
gh-142038: Expand guard for types_world_is_stopped() to fix debug builds without assertions (#142039)
1 parent 7e5fcae commit f6f456f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/typeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class object "PyObject *" "&PyBaseObject_Type"
8181

8282
#define END_TYPE_DICT_LOCK() Py_END_CRITICAL_SECTION2()
8383

84-
#ifndef NDEBUG
84+
#if !defined(NDEBUG) || defined(Py_DEBUG)
8585
// Return true if the world is currently stopped.
8686
static bool
8787
types_world_is_stopped(void)

0 commit comments

Comments
 (0)