summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2020-12-26 23:39:56 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2020-12-26 23:39:56 +0100
commit1c5836a90f957d413b483813bd74e45684609ae1 (patch)
treee2d29d184c42a9e629996210b9fcf9343990e74e /test
parent978d70f38e960a0ef09e0e417fc6a3df731c99d1 (diff)
downloadpoezio-1c5836a90f957d413b483813bd74e45684609ae1.tar.gz
poezio-1c5836a90f957d413b483813bd74e45684609ae1.tar.bz2
poezio-1c5836a90f957d413b483813bd74e45684609ae1.tar.xz
poezio-1c5836a90f957d413b483813bd74e45684609ae1.zip
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.
Diffstat (limited to 'test')
-rw-r--r--test/test_config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_config.py b/test/test_config.py
index 4632410b..262efc72 100644
--- a/test/test_config.py
+++ b/test/test_config.py
@@ -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))