Minor: help / direct usage of config (#6011)
Minor: help / direct usage of config
This commit is contained in:
commit
215be88fed
|
@ -20,8 +20,7 @@ def pytest_addoption(parser):
|
||||||
@pytest.hookimpl(hookwrapper=True)
|
@pytest.hookimpl(hookwrapper=True)
|
||||||
def pytest_fixture_setup(fixturedef, request):
|
def pytest_fixture_setup(fixturedef, request):
|
||||||
yield
|
yield
|
||||||
config = request.config
|
if request.config.option.setupshow:
|
||||||
if config.option.setupshow:
|
|
||||||
if hasattr(request, "param"):
|
if hasattr(request, "param"):
|
||||||
# Save the fixture parameter so ._show_fixture_action() can
|
# Save the fixture parameter so ._show_fixture_action() can
|
||||||
# display it now and during the teardown (in .finish()).
|
# display it now and during the teardown (in .finish()).
|
||||||
|
|
|
@ -42,7 +42,7 @@ def pytest_addoption(parser):
|
||||||
type="linelist",
|
type="linelist",
|
||||||
help="Each line specifies a pattern for "
|
help="Each line specifies a pattern for "
|
||||||
"warnings.filterwarnings. "
|
"warnings.filterwarnings. "
|
||||||
"Processed after -W and --pythonwarnings.",
|
"Processed after -W/--pythonwarnings.",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue