From 1c5836a90f957d413b483813bd74e45684609ae1 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 26 Dec 2020 23:39:56 +0100 Subject: 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. --- test/test_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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)) -- cgit v1.2.3