Skip to content

Commit

Permalink
Add test case for issue #1631
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycrosley committed Jan 11, 2021
1 parent 98fad11 commit b27a5dc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/unit/test_regressions.py
Expand Up @@ -1515,3 +1515,13 @@ def test_isort_adding_second_comma_issue_1621():
)
"""
)


def test_isort_shouldnt_duplicate_comments_issue_1631():
assert isort.check_code(
"""
import a # a comment
import a as b # b comment
""",
show_diff=True,
)

0 comments on commit b27a5dc

Please sign in to comment.