summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test_quickstart.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test_quickstart.py b/tests/test_quickstart.py
index eca0f78..63a48c2 100644
--- a/tests/test_quickstart.py
+++ b/tests/test_quickstart.py
@@ -5,9 +5,8 @@ import tox._quickstart
@pytest.fixture()
-def cleandir():
- newpath = tempfile.mkdtemp()
- os.chdir(newpath)
+def cleandir(tmpdir):
+ tmpdir.chdir()
@pytest.mark.usefixtures("cleandir")