mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-05-19 23:48:46 -05:00
Replace deprecated yield_fixture with fixture
Committed via https://github.com/asottile/all-repos
This commit is contained in:
@@ -14,7 +14,7 @@ from pre_commit import error_handler
|
||||
from testing.util import cmd_output_mocked_pre_commit_home
|
||||
|
||||
|
||||
@pytest.yield_fixture
|
||||
@pytest.fixture
|
||||
def mocked_log_and_exit():
|
||||
with mock.patch.object(error_handler, '_log_and_exit') as log_and_exit:
|
||||
yield log_and_exit
|
||||
|
||||
Reference in New Issue
Block a user