Skip to content

Commit

Permalink
test_pipelines: ignore empty lines
Browse files Browse the repository at this point in the history
somehow stderr includes an empty line when run on pypy
  • Loading branch information
astaric committed Mar 21, 2023
1 parent ac6d92d commit 5a3515a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ def get_output_with_iter_lines(cmd: BaseCommand) -> Tuple[List[str], List[str]]:
stderr, stdout = [], []
proc = cmd.popen()
for stdout_line, stderr_line in proc.iter_lines(retcode=[0, None]):
if stderr_line is not None:
if stderr_line:
stderr.append(stderr_line)
if stdout_line is not None:
if stdout_line:
stdout.append(stdout_line)
proc.wait()
return stdout, stderr

0 comments on commit 5a3515a

Please sign in to comment.