auth/credentials: allow credentials.Credentials to act as base class
authorStefan Metzmacher <metze@samba.org>
Thu, 9 Apr 2020 19:04:44 +0000 (21:04 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 1 Jul 2021 17:46:31 +0000 (17:46 +0000)
In tests it's useful to add more details.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
auth/credentials/pycredentials.c

index 798cdb41a00cdda99da33eafffeaa80b5e33a9f9..08b78e9dfce265c7496ac7630b1a4ddea9d18b50 100644 (file)
@@ -1437,7 +1437,7 @@ static struct PyModuleDef moduledef = {
 PyTypeObject PyCredentials = {
        .tp_name = "credentials.Credentials",
        .tp_new = py_creds_new,
-       .tp_flags = Py_TPFLAGS_DEFAULT,
+       .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
        .tp_methods = py_creds_methods,
 };