mirror of
https://github.com/samba-team/samba.git
synced 2025-03-12 20:58:37 +03:00
ldb:tests:api.py uses .disconnect before rmdir
super.tearDown() was removing the tmpdir, but because self.ldb had the file open, the directory was not cleared. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
09d9680f5e
commit
16820c883d
@ -106,10 +106,10 @@ class SimpleLdb(LdbBaseTest):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
self.ldb.disconnect()
|
||||
shutil.rmtree(self.testdir)
|
||||
super().tearDown()
|
||||
# Ensure the LDB is closed now, so we close the FD
|
||||
del(self.ldb)
|
||||
|
||||
def test_connect(self):
|
||||
ldb.Ldb(self.url(), flags=self.flags())
|
||||
|
Loading…
x
Reference in New Issue
Block a user