Skip to content

Commit

Permalink
Add failing test for #1427
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycrosley committed Aug 29, 2020
1 parent d4defa9 commit d203bc3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/unit/test_regressions.py
Expand Up @@ -632,3 +632,16 @@ def test_isort_should_be_able_to_add_independent_of_doc_string_placement_issue_1
show_diff=True,
add_imports=["os"],
)


def test_comments_should_never_be_moved_between_imports_issue_1427():
"""isort should never move comments to different import statement.
See: https://github.com/PyCQA/isort/issues/1427
"""
assert isort.check_code(
"""from package import CONSTANT
from package import * # noqa
""",
force_single_line=True,
show_diff=True,
)

0 comments on commit d203bc3

Please sign in to comment.