diff options
| author | Tamas Szabo <szabtam@gmail.com> | 2020-10-05 02:10:19 +0300 |
|---|---|---|
| committer | Tamas Szabo <szabtam@gmail.com> | 2020-10-05 02:10:19 +0300 |
| commit | fcd020695c95647d77e57d508fb905d6d0cab13b (patch) | |
| tree | eb8609210f6cdf67e3f6b7577411a2405a6238d2 /tests/unit/test_api.py | |
| parent | 7bd1511a7daf5dadc1234faef4cc88c8f7ec61cd (diff) | |
| download | isort-fcd020695c95647d77e57d508fb905d6d0cab13b.tar.gz | |
Another go at fixing the WIndows tests.
Diffstat (limited to 'tests/unit/test_api.py')
| -rw-r--r-- | tests/unit/test_api.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/test_api.py b/tests/unit/test_api.py index 92089056..c60b19f8 100644 --- a/tests/unit/test_api.py +++ b/tests/unit/test_api.py @@ -9,8 +9,8 @@ from isort import api from isort.settings import Config imperfect_content = "import b\nimport a\n" -fixed_content = "import a\nimport b\n".replace("\n", os.linesep) -fixed_diff = "\n+import a\n import b\n-import a\n".replace("\n", os.linesep) +fixed_content = "import a\nimport b\n" +fixed_diff = "\n+import a\n import b\n-import a\n" @pytest.fixture @@ -37,7 +37,7 @@ def test_sort_file(imperfect) -> None: def test_sort_file_to_stdout(capsys, imperfect) -> None: assert api.sort_file(imperfect, write_to_stdout=True) out, _ = capsys.readouterr() - assert out == fixed_content + assert out == fixed_content.replace("\n", os.linesep) def test_other_ask_to_apply(imperfect) -> None: |
