]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
tests: use @pytest.fixture instead of @pytest.yield_fixture
authorVincent Bernat <vincent@bernat.ch>
Sun, 12 Dec 2021 13:28:23 +0000 (14:28 +0100)
committerVincent Bernat <vincent@bernat.ch>
Sun, 12 Dec 2021 13:28:23 +0000 (14:28 +0100)
This works since 3.0 and the second form is therefore deprecated.

tests/integration/conftest.py

index e0146356595c06238e85b6c0b95babeca48240a6..3a7209c6509f55c208cb2e39e02edecfb5980f59 100644 (file)
@@ -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