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:
committed by
Andrew Bartlett
parent
e8fda61a57
commit
6ac4833678
@@ -89,7 +89,7 @@ def collapse_space(s, keep_empty_lines=False):
|
||||
|
||||
class SambaToolVisualizeLdif(SambaToolCmdTest):
|
||||
def setUp(self):
|
||||
super(SambaToolVisualizeLdif, self).setUp()
|
||||
super().setUp()
|
||||
self.lp = LoadParm()
|
||||
self.samdb, self.dbfile = samdb_from_ldif(MULTISITE_LDIF,
|
||||
self.tempdir,
|
||||
@@ -98,7 +98,7 @@ class SambaToolVisualizeLdif(SambaToolCmdTest):
|
||||
|
||||
def tearDown(self):
|
||||
self.remove_files(self.dbfile)
|
||||
super(SambaToolVisualizeLdif, self).tearDown()
|
||||
super().tearDown()
|
||||
|
||||
def remove_files(self, *files):
|
||||
for f in files:
|
||||
|
||||
Reference in New Issue
Block a user