summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamas Szabo <szabtam@gmail.com>2020-10-05 02:20:28 +0300
committerTamas Szabo <szabtam@gmail.com>2020-10-05 02:20:28 +0300
commitfa65b2d2500692d7d3ff97a9805d0ee56b917a50 (patch)
tree5e1b04c0e73743ac58ed37b70004547415cde517
parentfcd020695c95647d77e57d508fb905d6d0cab13b (diff)
downloadisort-fa65b2d2500692d7d3ff97a9805d0ee56b917a50.tar.gz
Another go at fixing the Windows tests.
-rw-r--r--tests/unit/test_api.py2
1 files changed, 1 insertions, 1 deletions
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: