Skip to content

Commit 2bcf7ba

Browse files
committed
Add additional assert.
1 parent 6f218fb commit 2bcf7ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Objects/typeobject.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,6 +1178,7 @@ type_modified_unlocked(PyTypeObject *type)
11781178
needed.
11791179
*/
11801180
ASSERT_NEW_TYPE_OR_LOCKED(type);
1181+
assert(!types_world_is_stopped());
11811182
if (type->tp_version_tag == 0) {
11821183
return;
11831184
}

0 commit comments

Comments
 (0)