From 948c1a4d423dba289342844fb177bd5fa9828fc0 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Wed, 18 May 2016 21:00:27 +0200 Subject: intg: prevent "TypeError: must be type, not classobj" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit http://stackoverflow.com/questions/9698614/super-raises-typeerror-must-be-type-not-classobj-for-new-style-class ========================== ERRORS =========================== _______ ERROR at setup of test_regression_ticket2163 ________ Traceback (most recent call last): File "src/tests/intg/test_pysss_nss_idmap.py", line 48, in ad_inst instance.teardown() File "src/tests/intg/ds_openldap.py", line 371, in teardown super(FakeAD, self).teardown() TypeError: super() argument 1 must be type, not classobj Reviewed-by: Fabiano FidĂȘncio Reviewed-by: Jakub Hrozek --- src/tests/intg/ds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/intg/ds.py b/src/tests/intg/ds.py index 66cb8875d..faf664ce0 100644 --- a/src/tests/intg/ds.py +++ b/src/tests/intg/ds.py @@ -20,7 +20,7 @@ import ldap -class DS: +class DS(object): """Abstract directory server instance.""" def __init__(self, dir, port, base_dn, admin_rdn, admin_pw): -- cgit