mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-18 08:34:41 +04:00
fix trailing whitespace in CalledProcessError output
This commit is contained in:
parent
192be6079b
commit
4ded56efac
3 changed files with 3 additions and 5 deletions
|
|
@ -16,7 +16,7 @@ from pre_commit.util import rmtree
|
|||
|
||||
|
||||
def test_CalledProcessError_str():
|
||||
error = CalledProcessError(1, ('exe',), b'output', b'errors')
|
||||
error = CalledProcessError(1, ('exe',), b'output\n', b'errors\n')
|
||||
assert str(error) == (
|
||||
"command: ('exe',)\n"
|
||||
'return code: 1\n'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue