diff --git a/tests/unit/test_regressions.py b/tests/unit/test_regressions.py index 10bd3bf81..89fa09274 100644 --- a/tests/unit/test_regressions.py +++ b/tests/unit/test_regressions.py @@ -1493,19 +1493,25 @@ def test_isort_adding_second_comma_issue_1621(): """ assert isort.check_code( """from .test import ( - TestTestTestTestTestTest2 as TestTestTestTestTestTest1, # Some really long comment bla bla bla bla bla + TestTestTestTestTestTest2 as TestTestTestTestTestTest1, """ + """# Some really long comment bla bla bla bla bla ) """, profile="black", show_diff=True, ) - assert isort.code( - """from .test import ( - TestTestTestTestTestTest2 as TestTestTestTestTestTest1 # Some really long comment bla bla bla bla bla + assert ( + isort.code( + """from .test import ( + TestTestTestTestTestTest2 as TestTestTestTestTestTest1 """ + """# Some really long comment bla bla bla bla bla ) """, - profile="black", - ) == """from .test import ( - TestTestTestTestTestTest2 as TestTestTestTestTestTest1, # Some really long comment bla bla bla bla bla + profile="black", + ) + == """from .test import ( + TestTestTestTestTestTest2 as TestTestTestTestTestTest1, """ + """# Some really long comment bla bla bla bla bla ) """ + )