A few cleanups for CalledProcessError to hopefully make it more readable

This commit is contained in:
Anthony Sottile 2019-12-23 17:46:39 -08:00
parent 83f0802578
commit b90412742e
4 changed files with 36 additions and 45 deletions

View file

@ -10,7 +10,7 @@ from pre_commit.util import CalledProcessError
def test_docker_is_running_process_error():
with mock.patch(
'pre_commit.languages.docker.cmd_output_b',
side_effect=CalledProcessError(*(None,) * 4),
side_effect=CalledProcessError(None, None, None, None, None),
):
assert docker.docker_is_running() is False