Skip to content

Commit 215be88

Browse files
authored
Minor: help / direct usage of config (#6011)
Minor: help / direct usage of config
2 parents 98fc937 + a6152db commit 215be88

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/_pytest/setuponly.py

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

src/_pytest/warnings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def pytest_addoption(parser):
4242
type="linelist",
4343
help="Each line specifies a pattern for "
4444
"warnings.filterwarnings. "
45-
"Processed after -W and --pythonwarnings.",
45+
"Processed after -W/--pythonwarnings.",
4646
)
4747

4848

0 commit comments

Comments
 (0)