Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 314f8cf commit b0f36f5Copy full SHA for b0f36f5
1 file changed
tests/test_black.py
@@ -1907,7 +1907,8 @@ def test_code_option_safe(self) -> None:
1907
args = ["--safe", "--code", code]
1908
result = CliRunner().invoke(black.main, args)
1909
1910
- self.compare_results(result, error_msg, 123)
+ assert error_msg == result.output
1911
+ assert result.exit_code == 123
1912
1913
def test_code_option_fast(self) -> None:
1914
"""Test that the code option ignores errors when the sanity checks fail."""
0 commit comments