Skip to content

Commit

Permalink
Add test for issue#1714
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudnits committed Apr 29, 2021
1 parent 337ca6b commit 2ca4261
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/unit/test_isort.py
Original file line number Diff line number Diff line change
Expand Up @@ -4095,6 +4095,14 @@ def test_isort_keeps_comments_issue_691() -> None:
assert isort.code(test_input) == expected_output


def test_isort_multiline_with_tab_issue_1714() -> None:
test_input = "from sys \\ \n" "\timport version\n" "print(version)\n"

expected_output = "from sys import version\n" "\n" "print(version)\n"

assert isort.code(test_input) == expected_output


def test_isort_ensures_blank_line_between_import_and_comment() -> None:
config = {
"ensure_newline_before_comments": True,
Expand Down

0 comments on commit 2ca4261

Please sign in to comment.