diff options
author | Marc Abramowitz <marc@marc-abramowitz.com> | 2012-11-25 08:48:51 -0800 |
---|---|---|
committer | Marc Abramowitz <marc@marc-abramowitz.com> | 2012-11-25 08:48:51 -0800 |
commit | 9232db36336b8041231af784ca041dbe38c232a0 (patch) | |
tree | e9797aef702eded59b2181e53edc95b734e97935 | |
parent | 7c9d058202309b129cf0bdea4baf4d2124e0273e (diff) | |
download | tox-9232db36336b8041231af784ca041dbe38c232a0.tar.gz |
tests/test_quickstart.py: Accept `tmpdir` in the `cleandir` fixture so
py.test manages the temp directory instead of the test code.
-rw-r--r-- | tests/test_quickstart.py | 5 |
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") |