From 2b6ad978dee401387fa5bd00416dd4950a45ac1c Mon Sep 17 00:00:00 2001 From: Morgan Courbet Date: Sun, 9 Jul 2017 09:24:21 +0200 Subject: [PATCH] Fix 13 tests for Python 3.4 & 3.5 --- tests/mixed_line_ending_test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/mixed_line_ending_test.py b/tests/mixed_line_ending_test.py index 85081ac..6c83067 100644 --- a/tests/mixed_line_ending_test.py +++ b/tests/mixed_line_ending_test.py @@ -25,7 +25,7 @@ def test_mixed_line_ending_fix_auto(input_s, expected_retval, output, tmpdir): ret = mixed_line_ending(('--fix=auto', '-vv', path.strpath)) assert ret == expected_retval - assert path.read() == output + assert path.read_binary() == output # Input, expected return value, expected output @@ -49,7 +49,7 @@ def test_detect_mixed_line_ending(input_s, expected_retval, output, tmpdir): ret = mixed_line_ending(('--fix=no', '-vv', path.strpath)) assert ret == expected_retval - assert path.read() == output + assert path.read_binary() == output # Input, expected return value, expected output @@ -74,7 +74,7 @@ def test_mixed_line_ending_fix_force_lf(input_s, expected_retval, output, ret = mixed_line_ending(('--fix=lf', '-vv', path.strpath)) assert ret == expected_retval - assert path.read() == output + assert path.read_binary() == output # Input, expected return value, expected output @@ -99,7 +99,7 @@ def test_mixed_line_ending_fix_force_crlf(input_s, expected_retval, output, ret = mixed_line_ending(('--fix=crlf', '-vv', path.strpath)) assert ret == expected_retval - assert path.read() == output + assert path.read_binary() == output def test_check_filenames():