fix trailing whitespace in CalledProcessError output

This commit is contained in:
Anthony Sottile 2023-02-21 12:42:09 -05:00
parent 192be6079b
commit 4ded56efac
3 changed files with 3 additions and 5 deletions

View file

@ -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'