Commits

Marc Abramowitz committed f489847 Draft

tests/test_quickstart.py: Accept `tmpdir` in the `cleandir` fixture so
py.test manages the temp directory instead of the test code.

Comments (0)

Files changed (1)

tests/test_quickstart.py

 
 
 @pytest.fixture()
-def cleandir():
-    newpath = tempfile.mkdtemp()
-    os.chdir(newpath)
+def cleandir(tmpdir):
+    tmpdir.chdir()
 
 
 @pytest.mark.usefixtures("cleandir")