Skip to content

Commit

Permalink
Add failing test for #1523
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycrosley committed Oct 5, 2020
1 parent 66bc864 commit 080a903
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/unit/test_regressions.py
Expand Up @@ -1273,3 +1273,14 @@ def d():
''',
show_diff=True,
)


def test_isort_should_keep_all_as_and_non_as_imports_issue_1523():
"""isort should keep as and non-as imports of the same path that happen to exist within the
same statement.
See: https://github.com/PyCQA/isort/issues/1523.
"""
assert isort.check_code(
"""
from selenium.webdriver import Remote, Remote as Driver
""", show_diff=True, combine_as_imports=True)

0 comments on commit 080a903

Please sign in to comment.