bpo-33644: Fix signatures of tp_finalize handlers in testing code. (GH-7111)
(cherry picked from commit 19de8b3dd742fb53681478ad4fff57ed7c37a953)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
diff --git a/Modules/_testmultiphase.c b/Modules/_testmultiphase.c
index 8090a48..68404f2 100644
--- a/Modules/_testmultiphase.c
+++ b/Modules/_testmultiphase.c
@@ -23,11 +23,10 @@
return 0;
}
-static int
+static void
Example_finalize(ExampleObject *self)
{
Py_CLEAR(self->x_attr);
- return 0;
}
static PyObject *