ldb: Fix tests to call the parent tearDown(), not setUp in tearDown
authorAndrew Bartlett <abartlet@samba.org>
Thu, 24 Aug 2017 04:29:58 +0000 (16:29 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 30 Aug 2017 08:48:20 +0000 (10:48 +0200)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
lib/ldb/tests/python/api.py

index 0c3b20e28ad1eeebe9cf6b804dbb791c31af0213..64f6989b1ae3f5a69a45bc3a77bc894a1ea5e906 100755 (executable)
@@ -54,7 +54,7 @@ class SimpleLdb(TestCase):
 
     def tearDown(self):
         shutil.rmtree(self.testdir)
-        super(SimpleLdb, self).setUp()
+        super(SimpleLdb, self).tearDown()
 
     def test_connect(self):
         ldb.Ldb(self.filename)
@@ -616,7 +616,7 @@ class DnTests(TestCase):
 
     def tearDown(self):
         shutil.rmtree(self.testdir)
-        super(DnTests, self).setUp()
+        super(DnTests, self).tearDown()
 
     def test_set_dn_invalid(self):
         x = ldb.Message()