Skip to content

Commit

Permalink
Create failing test for issue #1667
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycrosley committed Mar 3, 2021
1 parent c11759d commit 4acbb6d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/unit/test_regressions.py
Expand Up @@ -1568,3 +1568,20 @@ def spam():
)
== snippet
)


def test_isort_shouldnt_add_extra_line_float_to_top_issue_1667():
assert isort.check_code(
"""
import sys
sys.path.insert(1, 'path/containing/something_else/..')
import something_else # isort:skip
# Some constant
SOME_CONSTANT = 4
""",
show_diff=True,
float_to_top=True,
)

0 comments on commit 4acbb6d

Please sign in to comment.