Skip to content

Commit a6152db

Browse files
committed
setuponly: pytest_fixture_setup: use option directly
1 parent 83351a3 commit a6152db

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/_pytest/setuponly.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ def pytest_addoption(parser):
2222
@pytest.hookimpl(hookwrapper=True)
2323
def pytest_fixture_setup(fixturedef, request):
2424
yield
25-
config = request.config
26-
if config.option.setupshow:
25+
if request.config.option.setupshow:
2726
if hasattr(request, "param"):
2827
# Save the fixture parameter so ._show_fixture_action() can
2928
# display it now and during the teardown (in .finish()).

0 commit comments

Comments
 (0)