Fix a warning when running tests.

/home/linkmauve/dev/python/poezio/test/test_config.py:13: PytestDeprecationWarning: @pytest.yield_fixture is deprecated.
Use @pytest.fixture instead; they are the same.
This commit is contained in:
Emmanuel Gil Peyrot 2020-12-26 23:39:56 +01:00
parent 978d70f38e
commit 1c5836a90f

View file

@ -10,7 +10,7 @@ import pytest
from poezio import config
@pytest.yield_fixture(scope="module")
@pytest.fixture(scope="module")
def config_obj():
file_ = tempfile.NamedTemporaryFile(delete=False)
conf = config.Config(file_name=Path(file_.name))