Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b0f36f5

Browse files
authored
Update test_code_option_safe to work with click 8.2.0 (psf#4666)
1 parent 314f8cf commit b0f36f5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_black.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1907,7 +1907,8 @@ def test_code_option_safe(self) -> None:
19071907
args = ["--safe", "--code", code]
19081908
result = CliRunner().invoke(black.main, args)
19091909

1910-
self.compare_results(result, error_msg, 123)
1910+
assert error_msg == result.output
1911+
assert result.exit_code == 123
19111912

19121913
def test_code_option_fast(self) -> None:
19131914
"""Test that the code option ignores errors when the sanity checks fail."""

0 commit comments

Comments
 (0)