Skip to content

Commit

Permalink
Fix test to ensure output is the same
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycrosley committed Mar 20, 2021
1 parent 844c85c commit 0ee8733
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/unit/test_regressions.py
Expand Up @@ -1610,12 +1610,12 @@ def test_isort_shouldnt_move_noqa_comment_issue_1594():


def test_isort_correctly_handles_unix_vs_linux_newlines_issue_1566():
IMPORT_STATEMENT = (
import_statement = (
"from impacket.smb3structs import (\n"
"SMB2_CREATE, SMB2_FLAGS_DFS_OPERATIONS, SMB2_IL_IMPERSONATION, "
"SMB2_OPLOCK_LEVEL_NONE, SMB2Create,"
"\nSMB2Create_Response, SMB2Packet)\n"
)
assert isort.code(IMPORT_STATEMENT, line_length=120) == isort.code(
IMPORT_STATEMENT.replace("\n", "\r\n"), line_length=120
)
assert isort.code(import_statement, line_length=120) == isort.code(
import_statement.replace("\n", "\r\n"), line_length=120
).replace("\r\n", "\n")

0 comments on commit 0ee8733

Please sign in to comment.