summaryrefslogtreecommitdiff
path: root/auth
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2020-04-09 21:04:44 +0200
committerJule Anger <janger@samba.org>2021-09-16 06:50:11 +0000
commit8958105aa80bb6ec9218261bcaa3567d2b6a6a28 (patch)
treef7c40a790ee3d1eb8164dd71857f405f1fa00968 /auth
parent72606c028240f3d36cb87af2b8ef283d987b825e (diff)
downloadsamba-8958105aa80bb6ec9218261bcaa3567d2b6a6a28.tar.gz
auth/credentials: allow credentials.Credentials to act as base class
In tests it's useful to add more details. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> BUG: https://bugzilla.samba.org/show_bug.cgi?id=14817 (cherry picked from commit 1f413b2b2977687884781ca2399dadf6611ab461)
Diffstat (limited to 'auth')
-rw-r--r--auth/credentials/pycredentials.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/auth/credentials/pycredentials.c b/auth/credentials/pycredentials.c
index dfc50e6d79a..5a168e6dd7f 100644
--- a/auth/credentials/pycredentials.c
+++ b/auth/credentials/pycredentials.c
@@ -1431,7 +1431,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,
};