Clean up correctly after standarddir tests.

This commit is contained in:
Florian Bruhin 2015-09-11 20:52:24 +02:00
parent 09b0877eab
commit e075e6c9df

View File

@ -52,9 +52,12 @@ def no_cachedir_tag(monkeypatch):
lambda: None)
@pytest.fixture(autouse=True)
@pytest.yield_fixture(autouse=True)
@pytest.mark.usefixtures('no_cachedir_tag')
def reset_standarddir():
"""Clean up standarddir arguments before and after each test."""
standarddir.init(None)
yield
standarddir.init(None)