Skip to content

Commit fd90791

Browse files
committed
Test sdtout text as lines list
This is to avoid CRLF issues difference on multiple OSes Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent 462de79 commit fd90791

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/test_cmd.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ def test_report_errors(capsys):
5353
WARNING: msg4
5454
DEBUG: msg4
5555
NOTSET: msg4
56-
'''
56+
'''.splitlines(False)
5757
assert '' == err
58-
assert expected_out == out
58+
assert expected_out == out.splitlines(False)
5959

6060

6161
def test_report_errors_without_verbose(capsys):
@@ -73,9 +73,9 @@ def test_report_errors_without_verbose(capsys):
7373
expected_out = '''CRITICAL: msg1
7474
ERROR: msg2
7575
WARNING: msg4
76-
'''
76+
'''.splitlines(False)
7777
assert '' == err
78-
assert expected_out == out
78+
assert expected_out == out.splitlines(False)
7979

8080

8181
def test_report_errors_does_not_report_duplicate_errors(capsys):
@@ -147,8 +147,8 @@ def test_report_errors_with_verbose_flag(capsys):
147147
WARNING: msg4
148148
DEBUG: msg4
149149
NOTSET: msg4
150-
''')
151-
assert expected_out == out
150+
''').splitlines(False)
151+
assert expected_out == out.splitlines(False)
152152
assert '' == err
153153

154154

0 commit comments

Comments
 (0)