mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Fix Py3
This commit is contained in:
parent
5eda121260
commit
cd36e9e779
3 changed files with 12 additions and 5 deletions
|
|
@ -21,7 +21,7 @@ def test_CalledProcessError_str():
|
|||
@pytest.fixture
|
||||
def popen_mock():
|
||||
popen = mock.Mock(spec=subprocess.Popen)
|
||||
popen.return_value.communicate.return_value = (mock.Mock(), mock.Mock())
|
||||
popen.return_value.communicate.return_value = ('stdout', 'stderr')
|
||||
return popen
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue