1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-20 16:23:51 +03:00

python: tests: update all super calls to python 3 style in tests

Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>

[abartlet@samba.org Some python2 style super() calls remain due
 to being an actual, even if reasonable, behaviour change]
This commit is contained in:
Rob van der Linde
2023-11-28 16:38:22 +13:00
committed by Andrew Bartlett
parent e8fda61a57
commit 6ac4833678
129 changed files with 214 additions and 214 deletions

View File

@@ -28,13 +28,13 @@ class DSaclSetSddlTestCase(SambaToolCmdTest):
sddl_multi = "(OA;CIIO;RPWP;aaaaaaaa-1111-bbbb-2222-dddddddddddd;33333333-eeee-4444-ffff-555555555555;PS)(OA;CIIO;RPWP;cccccccc-9999-ffff-8888-eeeeeeeeeeee;77777777-dddd-6666-bbbb-555555555555;PS)"
def setUp(self):
super(DSaclSetSddlTestCase, self).setUp()
super().setUp()
self.samdb = self.getSamDB("-H", "ldap://%s" % os.environ["DC_SERVER"],"-U%s%%%s" % (os.environ["DC_USERNAME"], os.environ["DC_PASSWORD"]))
self.dn="OU=DSaclSetSddlTestCase,%s" % self.samdb.domain_dn()
self.samdb.create_ou(self.dn)
def tearDown(self):
super(DSaclSetSddlTestCase, self).tearDown()
super().tearDown()
# clean-up the created test ou
self.samdb.delete(self.dn)