Simplify the tests
diff --git a/tests/conftest.py b/tests/conftest.py
index de9c2fe..c3dc342 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -5,17 +5,10 @@
import pytest
from pre_commit_hooks.util import cmd_output
-from testing.util import cwd
-
-
-@pytest.yield_fixture
-def in_tmpdir(tmpdir):
- with cwd(tmpdir.strpath):
- yield tmpdir
@pytest.yield_fixture
def temp_git_dir(tmpdir):
- git_dir = tmpdir.join('gits').strpath
- cmd_output('git', 'init', git_dir)
+ git_dir = tmpdir.join('gits')
+ cmd_output('git', 'init', git_dir.strpath)
yield git_dir