summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2018-05-21 10:40:00 +1200
committerJeremy Allison <jra@samba.org>2018-05-23 00:53:25 +0200
commitc8d7e4c8985ab08b8f5580c1d823cf6b54b273c7 (patch)
tree90bb57139137983e42b1bbc3a694133af8c3fd02 /python
parent7049b2153b08152f03a0fcbb1817b430fe0a8451 (diff)
downloadsamba-c8d7e4c8985ab08b8f5580c1d823cf6b54b273c7.tar.gz
samba-c8d7e4c8985ab08b8f5580c1d823cf6b54b273c7.tar.bz2
samba-c8d7e4c8985ab08b8f5580c1d823cf6b54b273c7.zip
selftest: Clean up ldb on tearDown from each packet in TrafficEmulatorPacketTests
Otherwise the LDB (and so the server resources) are in use until the end of the whole test due to the way the objects are maintained in python for reporting. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed May 23 00:53:25 CEST 2018 on sn-devel-144
Diffstat (limited to 'python')
-rw-r--r--python/samba/tests/emulate/traffic_packet.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/samba/tests/emulate/traffic_packet.py b/python/samba/tests/emulate/traffic_packet.py
index a2c4567ed1d..56b126759b2 100644
--- a/python/samba/tests/emulate/traffic_packet.py
+++ b/python/samba/tests/emulate/traffic_packet.py
@@ -89,6 +89,7 @@ class TrafficEmulatorPacketTests(samba.tests.TestCase):
def tearDown(self):
super(TrafficEmulatorPacketTests, self).tearDown()
traffic.clean_up_accounts(self.ldb, 1)
+ del self.ldb
shutil.rmtree(self.tempdir)
def test_packet_cldap_03(self):