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
|
|
@ -127,7 +127,7 @@ def test_clone_shallow_failure_fallback_to_complete(
|
|||
|
||||
# Force shallow clone failure
|
||||
def fake_shallow_clone(self, *args, **kwargs):
|
||||
raise CalledProcessError(1, (), 0, b'', None)
|
||||
raise CalledProcessError(1, (), b'', None)
|
||||
store._shallow_clone = fake_shallow_clone
|
||||
|
||||
ret = store.clone(path, rev)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue