Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Prev Previous commit
Next Next commit
update ABI imports
  • Loading branch information
picnixz committed May 8, 2025
commit 121c51fa89c4bcdb4057c8feeaad2a170336c489
3 changes: 2 additions & 1 deletion Modules/_testcapimodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -2207,7 +2207,8 @@ test_macros(PyObject *self, PyObject *Py_UNUSED(args))
static PyObject *
test_weakref_capi(PyObject *Py_UNUSED(module), PyObject *Py_UNUSED(args))
{
extern PyObject *PyWeakref_GetObject(PyObject *);
// Get the function from the stable ABI.
PyAPI_FUNC(PyObject *) PyWeakref_GetObject(PyObject *);

// Create a new heap type, create an instance of this type, and delete the
// type. This object supports weak references.
Expand Down
Loading