From: Douglas Bagnall Date: Fri, 19 Nov 2021 03:15:50 +0000 (+1300) Subject: pytest/docs: set_smbconf_arbitrary_opposite() needs param_type X-Git-Tag: ldb-2.5.0~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b674c57a1829365f50bfdf846ca609d4ac205e52;p=thirdparty%2Fsamba.git pytest/docs: set_smbconf_arbitrary_opposite() needs param_type also, we fixed the name ("arbitrary", not "arbitary"). Signed-off-by: Douglas Bagnall Reviewed-by: Noel Power --- diff --git a/python/samba/tests/docs.py b/python/samba/tests/docs.py index 995b8e09978..6b80370f442 100644 --- a/python/samba/tests/docs.py +++ b/python/samba/tests/docs.py @@ -86,7 +86,8 @@ def set_smbconf_arbitary(cmdline, topdir, param, param_type, value_to_use): return None -def set_smbconf_arbitary_opposite(cmdline, topdir, tempdir, section, param, opposite_value, value_to_use): +def set_smbconf_arbitrary_opposite(cmdline, topdir, tempdir, section, param, + param_type, opposite_value, value_to_use): g = tempfile.NamedTemporaryFile(mode='w', dir=tempdir, delete=False) try: towrite = section + "\n" @@ -461,7 +462,8 @@ class SmbDotConfTests(TestCase): "--option", "%s = %s" % (param, value_to_use)] - future = executor.submit(set_smbconf_arbitary_opposite, cmdline, self.topdir, self.tempdir, section, param, opposite_value, value_to_use) + future = executor.submit(set_smbconf_arbitrary_opposite, cmdline, self.topdir, self.tempdir, + section, param, param_type, opposite_value, value_to_use) result_futures2.append(future) for f in concurrent.futures.as_completed(result_futures1):