diff --git a/src/_pytest/setuponly.py b/src/_pytest/setuponly.py index 639349748..a277ebc85 100644 --- a/src/_pytest/setuponly.py +++ b/src/_pytest/setuponly.py @@ -20,8 +20,7 @@ def pytest_addoption(parser): @pytest.hookimpl(hookwrapper=True) def pytest_fixture_setup(fixturedef, request): yield - config = request.config - if config.option.setupshow: + if request.config.option.setupshow: if hasattr(request, "param"): # Save the fixture parameter so ._show_fixture_action() can # display it now and during the teardown (in .finish()). diff --git a/src/_pytest/warnings.py b/src/_pytest/warnings.py index 63d22477c..d817a5cfa 100644 --- a/src/_pytest/warnings.py +++ b/src/_pytest/warnings.py @@ -42,7 +42,7 @@ def pytest_addoption(parser): type="linelist", help="Each line specifies a pattern for " "warnings.filterwarnings. " - "Processed after -W and --pythonwarnings.", + "Processed after -W/--pythonwarnings.", )