Skip to content

Commit

Permalink
tests: use @pytest.fixture instead of @pytest.yield_fixture
Browse files Browse the repository at this point in the history
This works since 3.0 and the second form is therefore deprecated.
  • Loading branch information
vincentbernat committed Dec 12, 2021
1 parent 575c586 commit 9f37088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
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
Expand Down

0 comments on commit 9f37088

Please sign in to comment.