bpo-33644: Fix signatures of tp_finalize handlers in testing code. (GH-7111)

(cherry picked from commit 19de8b3dd7)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
Miss Islington (bot) 2018-05-26 01:33:23 -07:00 committed by GitHub
parent af1d007bdb
commit 14d289be60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -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 *

View File

@ -47,11 +47,10 @@ Xxo_traverse(XxoObject *self, visitproc visit, void *arg)
return 0;
}
static int
static void
Xxo_finalize(XxoObject *self)
{
Py_CLEAR(self->x_attr);
return 0;
}
static PyObject *