From 0ee873365c722d5eea95e0e838b771f4b06a61e1 Mon Sep 17 00:00:00 2001 From: Timothy Crosley Date: Sat, 20 Mar 2021 00:06:02 -0700 Subject: [PATCH] Fix test to ensure output is the same --- tests/unit/test_regressions.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/unit/test_regressions.py b/tests/unit/test_regressions.py index 4cd8a3fac..26517598c 100644 --- a/tests/unit/test_regressions.py +++ b/tests/unit/test_regressions.py @@ -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")