Skip to content

Commit

Permalink
tests: make calls to KcovTestCase.do more strict
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
perillo committed Apr 1, 2024
1 parent 8462925 commit 6a387eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/tools/testbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6a387eb

Please sign in to comment.