We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b5df8b commit e592491Copy full SHA for e592491
Modules/_testcapi/heaptype.c
@@ -544,7 +544,7 @@ pytype_getmodulebytoken(PyObject *self, PyObject *args)
544
}
545
546
static PyType_Slot HeapCTypeWithBasesSlotInvalid_slots[] = {
547
- {Py_tp_bases, Py_None}, /* Not a tuple - should raise SystemError */
+ {Py_tp_bases, NULL}, /* filled out with Py_None in runtime */
548
{0, 0},
549
};
550
@@ -558,6 +558,7 @@ static PyType_Spec HeapCTypeWithBasesSlotInvalid_spec = {
558
static PyObject *
559
create_heapctype_with_invalid_bases_slot(PyObject *self, PyObject *Py_UNUSED(ignored))
560
{
561
+ HeapCTypeWithBasesSlotInvalid_slots[0].pfunc = Py_None;
562
return PyType_FromSpec(&HeapCTypeWithBasesSlotInvalid_spec);
563
564
0 commit comments