From 371297a59b2b70cd539b20f7ec55bd53557bb21d Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Sun, 28 Oct 2018 10:43:42 +1300 Subject: [PATCH] tests/samba_tool/provision_password_check: follow super inheritance We were skipping a level in the inheritance chain, which had no effect in this case (no .setUps or .tearDowns were missed) but it would be confusing if the parents ever changed. Note: in python 3, you just call super() with no args, and it works out the right thing. Signed-off-by: Douglas Bagnall Reviewed-by: Noel Power --- python/samba/tests/samba_tool/provision_password_check.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/samba/tests/samba_tool/provision_password_check.py b/python/samba/tests/samba_tool/provision_password_check.py index b2a88699ab4..a8fb8578ecc 100644 --- a/python/samba/tests/samba_tool/provision_password_check.py +++ b/python/samba/tests/samba_tool/provision_password_check.py @@ -24,7 +24,7 @@ class ProvisionPasswordTestCase(SambaToolCmdTest): """Test for password validation in domain provision subcommand""" def setUp(self): - super(SambaToolCmdTest, self).setUp() + super(ProvisionPasswordTestCase, self).setUp() self.tempsambadir = os.path.join(self.tempdir, "samba") os.mkdir(self.tempsambadir) @@ -53,5 +53,5 @@ class ProvisionPasswordTestCase(SambaToolCmdTest): self.assertCmdSuccess(result, out, err) def tearDown(self): - super(SambaToolCmdTest, self).tearDown() + super(ProvisionPasswordTestCase, self).tearDown() shutil.rmtree(self.tempsambadir)