summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2023-11-30 13:22:18 +1300
committerAndrew Bartlett <abartlet@samba.org>2023-11-30 01:05:32 +0000
commit42e7828563220f7c7f281f68c3cdcd529e6f6ef8 (patch)
tree184a13eef2da52451910e6130a7a3f17c09b6d6b /python
parent6ac48336780813cd5cb0cd9e5b5f1355aa342096 (diff)
downloadsamba-42e7828563220f7c7f281f68c3cdcd529e6f6ef8.tar.gz
samba-42e7828563220f7c7f281f68c3cdcd529e6f6ef8.tar.bz2
samba-42e7828563220f7c7f281f68c3cdcd529e6f6ef8.zip
python: Correct Python2 super() calls that called the wrong class
These changes have been checked as safe as skipping a superclass has no actual impact. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'python')
-rw-r--r--python/samba/tests/blackbox/mdsearch.py2
-rw-r--r--python/samba/tests/cred_opt.py2
-rw-r--r--python/samba/tests/dcerpc/mdssvc.py2
-rw-r--r--python/samba/tests/dcerpc/raw_testcase.py2
4 files changed, 4 insertions, 4 deletions
diff --git a/python/samba/tests/blackbox/mdsearch.py b/python/samba/tests/blackbox/mdsearch.py
index 1f72c4e3948..8d67090e182 100644
--- a/python/samba/tests/blackbox/mdsearch.py
+++ b/python/samba/tests/blackbox/mdsearch.py
@@ -83,7 +83,7 @@ class MdfindBlackboxTests(BlackboxTestCase):
f.close()
def tearDown(self):
- super(BlackboxTestCase, self).tearDown()
+ super().tearDown()
for file in testfiles:
os.remove("%s/%s" % (self.sharepath, file))
diff --git a/python/samba/tests/cred_opt.py b/python/samba/tests/cred_opt.py
index 5bc7a831da7..0e28b67d196 100644
--- a/python/samba/tests/cred_opt.py
+++ b/python/samba/tests/cred_opt.py
@@ -66,7 +66,7 @@ class CredentialsOptionsTests(samba.tests.TestCase):
self.assertIn(clear_password_opt, setproctitle.getproctitle())
def tearDown(self):
- super(samba.tests.TestCase, self).tearDown()
+ super().tearDown()
setproctitle.setproctitle(self.old_proctitle)
sys.argv.pop()
diff --git a/python/samba/tests/dcerpc/mdssvc.py b/python/samba/tests/dcerpc/mdssvc.py
index 31c3ba9ae52..1d53676dea3 100644
--- a/python/samba/tests/dcerpc/mdssvc.py
+++ b/python/samba/tests/dcerpc/mdssvc.py
@@ -96,7 +96,7 @@ class MdssvcTests(RpcInterfaceTestCase):
f.close()
def tearDown(self):
- super(RpcInterfaceTestCase, self).tearDown()
+ super().tearDown()
for file in testfiles:
os.remove("%s/%s" % (self.sharepath, file))
diff --git a/python/samba/tests/dcerpc/raw_testcase.py b/python/samba/tests/dcerpc/raw_testcase.py
index 81ca9b1c6ce..743fa0f38c1 100644
--- a/python/samba/tests/dcerpc/raw_testcase.py
+++ b/python/samba/tests/dcerpc/raw_testcase.py
@@ -170,7 +170,7 @@ class RawDCERPCTest(TestCase):
def tearDown(self):
self._disconnect("tearDown")
- super(TestCase, self).tearDown()
+ super().tearDown()
def noop(self):
return