From: Douglas Bagnall Date: Sat, 27 Oct 2018 21:43:42 +0000 (+1300) Subject: tests/samba_tool/provision_password_check: follow super inheritance X-Git-Tag: tdb-1.3.17~1049 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=371297a59b2b70cd539b20f7ec55bd53557bb21d;p=thirdparty%2Fsamba.git 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 --- 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)