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:
parent
978d70f38e
commit
1c5836a90f
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue