summaryrefslogtreecommitdiff
path: root/Modules/_testmultiphase.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-05-26 01:33:23 -0700
committerGitHub <noreply@github.com>2018-05-26 01:33:23 -0700
commit14d289be60a2ad4cb65990a63ed2e75e9a8cb3ec (patch)
tree19436c5534ce3b480aad0fd64f35b80c99dce276 /Modules/_testmultiphase.c
parentaf1d007bdb3d74cf107d1ad569f4d344f8c57fb8 (diff)
downloadcpython-git-14d289be60a2ad4cb65990a63ed2e75e9a8cb3ec.tar.gz
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>
Diffstat (limited to 'Modules/_testmultiphase.c')
-rw-r--r--Modules/_testmultiphase.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/_testmultiphase.c b/Modules/_testmultiphase.c
index 8090a485f4..68404f2c6c 100644
--- a/Modules/_testmultiphase.c
+++ b/Modules/_testmultiphase.c
@@ -23,11 +23,10 @@ Example_traverse(ExampleObject *self, visitproc visit, void *arg)
return 0;
}
-static int
+static void
Example_finalize(ExampleObject *self)
{
Py_CLEAR(self->x_attr);
- return 0;
}
static PyObject *