Skip to content

Commit 58f3ac8

Browse files
committed
fixup! Fix whitespace insensitive check triggering on tabs
1 parent 3d75057 commit 58f3ac8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/unit/test_isort.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4212,7 +4212,10 @@ def test_to_ensure_empty_line_not_added_to_file_start_issue_889() -> None:
42124212

42134213

42144214
@pytest.mark.parametrize("ws", ["", " ", "\t", "\f", "\n"])
4215-
def test_to_ensure_correctly_handling_of_whitespace_only_issue_811(ws, capsys) -> None:
4215+
def test_to_ensure_correctly_handling_of_whitespace_only_issue_811(
4216+
ws: str,
4217+
capsys: pytest.CaptureFixture[str],
4218+
) -> None:
42164219
test_input = f'import os\nimport sys\n\n{ws}\ndef my_function():\n print("hi")\n'
42174220
assert isort.check_code(test_input, ignore_whitespace=True)
42184221
out, err = capsys.readouterr()

0 commit comments

Comments
 (0)