From 9f370881d17d74ff89d061872556555f8315864c Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 12 Dec 2021 14:28:23 +0100 Subject: [PATCH] tests: use @pytest.fixture instead of @pytest.yield_fixture This works since 3.0 and the second form is therefore deprecated. --- tests/integration/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5