mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-19 00:54:42 +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
|
|
@ -18,11 +18,10 @@ from pre_commit.util import tmpdir
|
|||
|
||||
|
||||
def test_CalledProcessError_str():
|
||||
error = CalledProcessError(1, ('exe',), 0, b'output', b'errors')
|
||||
error = CalledProcessError(1, ('exe',), b'output', b'errors')
|
||||
assert str(error) == (
|
||||
"command: ('exe',)\n"
|
||||
'return code: 1\n'
|
||||
'expected return code: 0\n'
|
||||
'stdout:\n'
|
||||
' output\n'
|
||||
'stderr:\n'
|
||||
|
|
@ -31,11 +30,10 @@ def test_CalledProcessError_str():
|
|||
|
||||
|
||||
def test_CalledProcessError_str_nooutput():
|
||||
error = CalledProcessError(1, ('exe',), 0, b'', b'')
|
||||
error = CalledProcessError(1, ('exe',), b'', b'')
|
||||
assert str(error) == (
|
||||
"command: ('exe',)\n"
|
||||
'return code: 1\n'
|
||||
'expected return code: 0\n'
|
||||
'stdout: (none)\n'
|
||||
'stderr: (none)'
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue