Fix failing tests

This commit is contained in:
Eric Torres
2021-12-20 22:39:27 -08:00
parent b2ddc57086
commit 50be791ab7
2 changed files with 13 additions and 12 deletions

View File

@ -90,7 +90,7 @@ def locate_files(patterns, bin_override=None, capture_text=None):
:returns: path of user-selected file
:rtype: bytes, str if capture_text was initialized from None
"""
cmd = [bin_override if bin_override is not None else LOCATE_CMD, *LOCATE_OPTS]
cmd = [bin_override if bin_override is not None else LOCATE_CMD, *LOCATE_OPTS, "--"]
cmd.extend(patterns)
return subprocess.run(cmd, capture_output=True, text=capture_text).stdout