From 6a387ebe04f31b46a5b2c091e41cd4125f2a6ae8 Mon Sep 17 00:00:00 2001 From: Manlio Perillo Date: Mon, 1 Apr 2024 16:10:24 +0200 Subject: [PATCH] tests: make calls to KcovTestCase.do more strict Update the KcovTestCase.do method signature, so that kcovKcov is both a positional or keyword parameter, and the timeout is a keyword only parameter. I was planning to kame kcovKcov a positional only parameter, but the `bash_linux_only.bash_exit_before_child` test used it as a keyword parameter. This change codifies the current usage. --- tests/tools/testbase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tools/testbase.py b/tests/tools/testbase.py index 6c48eb74..922612e2 100644 --- a/tests/tools/testbase.py +++ b/tests/tools/testbase.py @@ -75,7 +75,7 @@ def doShell(self, cmdline): return rv, output - def do(self, cmdline, kcovKcov=True, timeout=default_timeout): + def do(self, cmdline, /, kcovKcov=True, *, timeout=default_timeout): extra = "" if ( kcovKcov