Skip to content

Commit bb72a79

Browse files
committed
Relax assertion.
1 parent c58e4d0 commit bb72a79

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Objects/object.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3389,8 +3389,7 @@ int _PyObject_VisitType(PyObject *op, visitproc visit, void *arg)
33893389
{
33903390
assert(op != NULL);
33913391
PyTypeObject *tp = Py_TYPE(op);
3392-
assert(PyType_HasFeature(tp, Py_TPFLAGS_HEAPTYPE));
3393-
assert(!PyType_HasFeature(tp, Py_TPFLAGS_IMMUTABLETYPE));
3392+
_PyObject_ASSERT((PyObject *)tp, PyType_HasFeature(tp, Py_TPFLAGS_HEAPTYPE));
33943393
Py_VISIT(tp);
33953394
return 0;
33963395
}

0 commit comments

Comments
 (0)