summaryrefslogtreecommitdiffstats
path: root/src/tests/intg/ds.py
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2016-08-11 18:11:02 +0200
committerLukas Slebodnik <lslebodn@redhat.com>2016-08-18 13:59:09 +0200
commita035366f622f42c865dbaa1579f741a81548fde2 (patch)
treedb8eb6f6907c0c5440bd4760732132cbadd82520 /src/tests/intg/ds.py
parent9b86f8f3c07af6fd3d2b08ff66cf9dcce61e7abf (diff)
downloadsssd-a035366f622f42c865dbaa1579f741a81548fde2.tar.gz
sssd-a035366f622f42c865dbaa1579f741a81548fde2.tar.xz
sssd-a035366f622f42c865dbaa1579f741a81548fde2.zip
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. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/tests/intg/ds.py')
-rw-r--r--src/tests/intg/ds.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/tests/intg/ds.py b/src/tests/intg/ds.py
index df08facf4..66cb8875d 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()