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
|
|
@ -55,7 +55,7 @@ def test_run_a_python_hook(config_for_python_hooks_repo):
|
|||
)
|
||||
|
||||
assert ret[0] == 0
|
||||
assert ret[1] == b"['/dev/null']\nHello World\n"
|
||||
assert ret[1] == "['/dev/null']\nHello World\n"
|
||||
|
||||
|
||||
@pytest.mark.integration
|
||||
|
|
@ -77,7 +77,7 @@ def test_cwd_of_hook(config_for_prints_cwd_repo):
|
|||
)
|
||||
|
||||
assert ret[0] == 0
|
||||
assert ret[1] == repo.repo_url.encode('utf-8') + b'\n'
|
||||
assert ret[1] == repo.repo_url + '\n'
|
||||
|
||||
|
||||
@pytest.mark.skipif(
|
||||
|
|
@ -90,7 +90,7 @@ def test_run_a_node_hook(config_for_node_hooks_repo):
|
|||
ret = repo.run_hook(PrefixedCommandRunner(C.HOOKS_WORKSPACE), 'foo', [])
|
||||
|
||||
assert ret[0] == 0
|
||||
assert ret[1] == b'Hello World\n'
|
||||
assert ret[1] == 'Hello World\n'
|
||||
|
||||
|
||||
@pytest.mark.integration
|
||||
|
|
@ -101,7 +101,7 @@ def test_run_a_script_hook(config_for_script_hooks_repo):
|
|||
)
|
||||
|
||||
assert ret[0] == 0
|
||||
assert ret[1] == b'bar\nHello World\n'
|
||||
assert ret[1] == 'bar\nHello World\n'
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue