Skip to content

Commit 741a261

Browse files
qunaibitsteve-s
authored andcommitted
Use PyHeapTypeObject instead of PyObject
1 parent 9679179 commit 741a261

File tree

1 file changed

+1
-1
lines changed
  • graalpython/com.oracle.graal.python.test/src/tests/cpyext

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python.test/src/tests/cpyext/test_object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ def test_subclasses(self):
582582
PyType_Slot slots[] = {
583583
{ 0 }
584584
};
585-
PyType_Spec spec = { "DynamicType", sizeof(PyObject), 0, Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, slots };
585+
PyType_Spec spec = { "DynamicType", sizeof(PyHeapTypeObject), 0, Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, slots };
586586
PyObject* result = PyType_FromSpecWithBases(&spec, bases);
587587
return result;
588588
}

0 commit comments

Comments
 (0)