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

@@ -31,7 +31,7 @@ for p in ["../../../../../testdata/samba3", "../../../../testdata/samba3"]:
class ParamTestCase(TestCaseInTempDir):
def setUp(self):
super(ParamTestCase, self).setUp()
super().setUp()
os.system("cp -r %s %s" % (DATADIR, self.tempdir))
datadir = os.path.join(self.tempdir, "samba3")
@@ -41,7 +41,7 @@ class ParamTestCase(TestCaseInTempDir):
def tearDown(self):
self.lp = []
os.system("rm -rf %s" % os.path.join(self.tempdir, "samba3"))
super(ParamTestCase, self).tearDown()
super().tearDown()
def test_param(self):
self.assertEqual("BEDWYR", self.lp.get("netbios name"))