mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14: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
|
|
@ -178,6 +178,6 @@ def test_get_docker_path_in_docker_windows(in_docker):
|
|||
|
||||
def test_get_docker_path_in_docker_docker_in_docker(in_docker):
|
||||
# won't be able to discover "self" container in true docker-in-docker
|
||||
err = CalledProcessError(1, (), 0, b'', b'')
|
||||
err = CalledProcessError(1, (), b'', b'')
|
||||
with mock.patch.object(docker, 'cmd_output_b', side_effect=err):
|
||||
assert docker._get_docker_path('/project') == '/project'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue