Skip to content

Commit

Permalink
fix output
Browse files Browse the repository at this point in the history
  • Loading branch information
pomponchik committed Sep 4, 2023
1 parent c4e8fa7 commit dabe3d7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/cli/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,11 @@ def test_cli_where(main_runner):


def test_run_command_without_arguments(main_runner):
for index, runner in enumerate((subprocess.run, )):
for runner in (main_runner, subprocess.run):
result = runner(['instld'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, bufsize=100, universal_newlines=True)

assert result.returncode == 1
assert result.stdout == ''
print(result.stderr)
print(repr(result.stderr))
print(repr(f'usage: instld python_file.py [argv ...]{os.linesep}'))
print(result.stderr == f'usage: instld python_file.py [argv ...]{os.linesep}')
assert result.stderr == f'usage: instld python_file.py [argv ...]\n'


Expand Down

0 comments on commit dabe3d7

Please sign in to comment.