We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83351a3 commit a6152dbCopy full SHA for a6152db
src/_pytest/setuponly.py
@@ -22,8 +22,7 @@ def pytest_addoption(parser):
22
@pytest.hookimpl(hookwrapper=True)
23
def pytest_fixture_setup(fixturedef, request):
24
yield
25
- config = request.config
26
- if config.option.setupshow:
+ if request.config.option.setupshow:
27
if hasattr(request, "param"):
28
# Save the fixture parameter so ._show_fixture_action() can
29
# display it now and during the teardown (in .finish()).
0 commit comments