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
@@ -37,14 +37,14 @@ class HelperTests(samba.tests.TestCase):
|
||||
class HiveTests(samba.tests.TestCaseInTempDir):
|
||||
|
||||
def setUp(self):
|
||||
super(HiveTests, self).setUp()
|
||||
super().setUp()
|
||||
self.hive_path = os.path.join(self.tempdir, "ldb_new.ldb")
|
||||
self.hive = registry.open_ldb(self.hive_path)
|
||||
|
||||
def tearDown(self):
|
||||
del self.hive
|
||||
os.unlink(self.hive_path)
|
||||
super(HiveTests, self).tearDown()
|
||||
super().tearDown()
|
||||
|
||||
def test_ldb_new(self):
|
||||
self.assertTrue(self.hive is not None)
|
||||
|
||||
Reference in New Issue
Block a user