Replace deprecated yield_fixture with fixture

Committed via https://github.com/asottile/all-repos
This commit is contained in:
Anthony Sottile 2018-01-21 15:31:17 -08:00
parent 98ec74dcab
commit 0f54fedac9
6 changed files with 28 additions and 28 deletions

View file

@ -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