mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
Remove expected_returncode from CalledProcessError
This commit is contained in:
parent
84b38f7b89
commit
42102a1bfd
5 changed files with 8 additions and 14 deletions
|
|
@ -162,7 +162,7 @@ def test_error_handler_non_ascii_exception(mock_store_dir):
|
|||
def test_error_handler_non_utf8_exception(mock_store_dir):
|
||||
with pytest.raises(SystemExit):
|
||||
with error_handler.error_handler():
|
||||
raise CalledProcessError(1, ('exe',), 0, b'error: \xa0\xe1', b'')
|
||||
raise CalledProcessError(1, ('exe',), b'error: \xa0\xe1', b'')
|
||||
|
||||
|
||||
def test_error_handler_non_stringable_exception(mock_store_dir):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue