mirror of
https://github.com/samba-team/samba.git
synced 2025-12-17 04:23:50 +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:
committed by
Andrew Bartlett
parent
e8fda61a57
commit
6ac4833678
@@ -26,7 +26,7 @@ class PwdSettingsCmdTestCase(SambaToolCmdTest):
|
||||
"""Tests for 'samba-tool domain passwordsettings' subcommands"""
|
||||
|
||||
def setUp(self):
|
||||
super(PwdSettingsCmdTestCase, self).setUp()
|
||||
super().setUp()
|
||||
self.server = "ldap://%s" % os.environ["DC_SERVER"]
|
||||
self.user_auth = "-U%s%%%s" % (os.environ["DC_USERNAME"],
|
||||
os.environ["DC_PASSWORD"])
|
||||
@@ -36,7 +36,7 @@ class PwdSettingsCmdTestCase(SambaToolCmdTest):
|
||||
self.obj_cleanup = []
|
||||
|
||||
def tearDown(self):
|
||||
super(PwdSettingsCmdTestCase, self).tearDown()
|
||||
super().tearDown()
|
||||
# clean-up any objects the test has created
|
||||
for dn in self.obj_cleanup:
|
||||
self.ldb.delete(dn)
|
||||
|
||||
Reference in New Issue
Block a user