diff options
author | Timothy Crosley <timothy.crosley@gmail.com> | 2021-01-10 23:19:03 -0800 |
---|---|---|
committer | Timothy Crosley <timothy.crosley@gmail.com> | 2021-01-10 23:19:03 -0800 |
commit | b27a5dcf039a72ff335fd81e7a313a51aa3b0593 (patch) | |
tree | 55c6cca4d07efd04e73a1549a0e0dbf858714982 | |
parent | 98fad1127fc0771959ab39303548e3b50a1e7b5f (diff) | |
download | isort-issue/1631.tar.gz |
Add test case for issue #1631issue/1631
-rw-r--r-- | tests/unit/test_regressions.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/unit/test_regressions.py b/tests/unit/test_regressions.py index 89fa0927..a4d98cce 100644 --- a/tests/unit/test_regressions.py +++ b/tests/unit/test_regressions.py @@ -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, + ) |