From: Vincent Bernat Date: Sun, 12 Dec 2021 13:28:23 +0000 (+0100) Subject: tests: use @pytest.fixture instead of @pytest.yield_fixture X-Git-Tag: 1.0.14~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9f370881d17d74ff89d061872556555f8315864c;p=thirdparty%2Flldpd.git tests: use @pytest.fixture instead of @pytest.yield_fixture This works since 3.0 and the second form is therefore deprecated. --- diff --git a/tests/integration/conftest.py b/tests/integration/conftest.py index e0146356..3a7209c6 100644 --- a/tests/integration/conftest.py +++ b/tests/integration/conftest.py @@ -8,7 +8,7 @@ from fixtures.namespaces import * from fixtures.network import * -@pytest.yield_fixture(autouse=True, scope='session') +@pytest.fixture(autouse=True, scope='session') def root(): """Ensure we are somewhat root.""" # We could do a user namespace but there are too many