mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
ldb: Fix tests to call the parent tearDown(), not setUp in tearDown
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
parent
a5dbcbeeed
commit
841e763a2b
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user