Skip to content

Commit

Permalink
Replace "\n" with os.linesep
Browse files Browse the repository at this point in the history
  • Loading branch information
Alnusjaponica committed Nov 2, 2023
1 parent 08db792 commit e152d69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ def _parse_output(output: str, output_format: str) -> Any:
if output_format == "value":
# Currently, _parse_output with output_format="value" is used only for
# `study-names` command.
return [{"name": values} for values in output.split("\n")]
return [{"name": values} for values in output.split(os.linesep)]
elif output_format == "table":
rows = output.split("\n")
rows = output.split(os.linesep)
assert all(len(rows[0]) == len(row) for row in rows)
# Check ruled lines.
assert rows[0] == rows[2] == rows[-1]
Expand Down

0 comments on commit e152d69

Please sign in to comment.