summaryrefslogtreecommitdiffstats
path: root/test/t/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/t/conftest.py')
-rw-r--r--test/t/conftest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/t/conftest.py b/test/t/conftest.py
index cb279cc..2ca0f9a 100644
--- a/test/t/conftest.py
+++ b/test/t/conftest.py
@@ -381,8 +381,8 @@ def load_completion_for(bash: pexpect.spawn, cmd: str) -> bool:
try:
# Allow _comp_load to fail so we can test completions
# that are directly loaded in bash_completion without a separate file.
- assert_bash_exec(bash, "_comp_load %s || :" % cmd)
- assert_bash_exec(bash, "complete -p %s &>/dev/null" % cmd)
+ assert_bash_exec(bash, "_comp_load -- %s || :" % cmd)
+ assert_bash_exec(bash, "complete -p -- %s &>/dev/null" % cmd)
except AssertionError:
return False
return True