1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-13 16: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:
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

@@ -154,7 +154,7 @@ class RawLdapTest(TestCase):
"""
def setUp(self):
super(RawLdapTest, self).setUp()
super().setUp()
self.host = samba.tests.env_get_var_value('SERVER')
self.port = 636
@@ -166,7 +166,7 @@ class RawLdapTest(TestCase):
def tearDown(self):
self.disconnect()
super(RawLdapTest, self).tearDown()
super().tearDown()
def disconnect(self):
""" Disconnect from and clean up the connection to the server """
@@ -751,7 +751,7 @@ class RawCldapTest(TestCase):
"""
def setUp(self):
super(RawCldapTest, self).setUp()
super().setUp()
self.host = samba.tests.env_get_var_value('SERVER')
self.port = 389
@@ -760,7 +760,7 @@ class RawCldapTest(TestCase):
def tearDown(self):
self.disconnect()
super(RawCldapTest, self).tearDown()
super().tearDown()
def disconnect(self):
""" Disconnect from and clean up the connection to the server """