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:23 -08:00
parent 0ddb3b8527
commit 4ab791497c
3 changed files with 4 additions and 4 deletions

View file

@ -7,7 +7,7 @@ import pytest
from pre_commit_hooks.util import cmd_output
@pytest.yield_fixture
@pytest.fixture
def temp_git_dir(tmpdir):
git_dir = tmpdir.join('gits')
cmd_output('git', 'init', '--', git_dir.strpath)