From cc1f644d335a1c4f873b9cb4851f349e596673e4 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Thu, 11 Aug 2016 18:11:02 +0200 Subject: [PATCH 01/16] ds.py: Do not call teardown in destructor We use finalizers in pytest for cleaning up of openldap server. But sometimes destructor was called in case of failure which causes many issues in tests. Running teardown in destructor is not reliable due to pyhton nature. --- src/tests/intg/ds.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/tests/intg/ds.py b/src/tests/intg/ds.py index df08facf408727a0dd5f4c0e75441b0086089557..66cb8875da519567e03679711af0aea2cdfda4df 100644 --- a/src/tests/intg/ds.py +++ b/src/tests/intg/ds.py @@ -56,7 +56,3 @@ class DS: conn = ldap.initialize(self.ldap_url) conn.simple_bind_s(self.admin_dn, self.admin_pw) return conn - - def __del__(self): - """Destroy the instance.""" - self.teardown() -- 2.9.2