From fa65b2d2500692d7d3ff97a9805d0ee56b917a50 Mon Sep 17 00:00:00 2001 From: Tamas Szabo Date: Mon, 5 Oct 2020 02:20:28 +0300 Subject: Another go at fixing the Windows tests. --- tests/unit/test_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/test_api.py b/tests/unit/test_api.py index c60b19f8..1235626e 100644 --- a/tests/unit/test_api.py +++ b/tests/unit/test_api.py @@ -64,7 +64,7 @@ def test_check_file_no_changes(capsys, tmpdir) -> None: def test_check_file_with_changes(capsys, imperfect) -> None: assert not api.check_file(imperfect, show_diff=True) out, _ = capsys.readouterr() - assert fixed_diff in out + assert fixed_diff.replace("\n", os.linesep) in out def test_sorted_imports_multiple_configs() -> None: -- cgit v1.2.1