summaryrefslogtreecommitdiff
path: root/Modules/_testmultiphase.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-05-26 10:51:58 +0300
committerGitHub <noreply@github.com>2018-05-26 10:51:58 +0300
commit19de8b3dd742fb53681478ad4fff57ed7c37a953 (patch)
treec0168b421b65732a078d0000b4808948006b5bf8 /Modules/_testmultiphase.c
parent4f0bc7f7ab6ec23594b0efe11d082f78ae42abed (diff)
downloadcpython-git-19de8b3dd742fb53681478ad4fff57ed7c37a953.tar.gz
bpo-33644: Fix signatures of tp_finalize handlers in testing code. (GH-7111)
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 *