Skip to content

Commit b77b590

Browse files
committed
Make test work on Python3 and Windows
Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent 28cc7d0 commit b77b590

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_cmd.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,9 @@ def check_about_stdout(options, expected_loc, regen=False):
257257
ef.write(stdout)
258258

259259
expected_file = get_test_loc(expected_loc, must_exists=True)
260-
expected = open(expected_file).read()
261-
assert expected == stdout
260+
expected = open(expected_file, 'rb').read()
261+
# we do not keep ends to ignore LF/CRF differences across OSes
262+
assert expected.splitlines(False) == stdout.splitlines(False)
262263

263264

264265
def test_about_help_text(regen=False):

0 commit comments

Comments
 (0)