Skip to content

Commit

Permalink
polish
Browse files Browse the repository at this point in the history
  • Loading branch information
mlin committed Nov 19, 2023
1 parent b4e0643 commit a49ce8f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_cli_argcomplete.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ def run_completer(
completer(parser, output_stream=t, exit_method=sys.exit, **kwargs)
if cm.exception.code != 0:
raise Exception("Unexpected exit code %d" % cm.exception.code)
with open(t.name, "rb") as tr:
tr.seek(0)
return tr.read().decode().split(IFS)
with open(t.name, "r") as tr:
return tr.read().split(IFS)

@pytest.mark.skip(reason="must run with unittest, not pytest, due to fd capture conflict")
def test_completion(self):
Expand Down

0 comments on commit a49ce8f

Please sign in to comment.