commit | 4ab791497cf4829cc9a6fab1dda0b60bd1eae376 | [log] [tgz] |
---|---|---|
author | Anthony Sottile <asottile@umich.edu> | Sun Jan 21 15:31:23 2018 -0800 |
committer | Anthony Sottile <asottile@umich.edu> | Sun Jan 21 15:31:23 2018 -0800 |
tree | d012e4def9691d5221ef13e723437b0ea7edb933 | |
parent | 0ddb3b8527b29e56ce97e5e8308b7a871f53b3a7 [diff] [blame] |
Replace deprecated yield_fixture with fixture Committed via https://github.com/asottile/all-repos
diff --git a/tests/forbid_new_submodules_test.py b/tests/forbid_new_submodules_test.py index fb37862..dc64f06 100644 --- a/tests/forbid_new_submodules_test.py +++ b/tests/forbid_new_submodules_test.py
@@ -6,7 +6,7 @@ from pre_commit_hooks.forbid_new_submodules import main -@pytest.yield_fixture +@pytest.fixture def git_dir_with_git_dir(tmpdir): with tmpdir.as_cwd(): cmd_output('git', 'init', '.')