Remove unreachable code from config._prepareconfig

The code that could trigger the execution of the removed lines was
removed with a7e4016.
This commit is contained in:
Philipp Loose 2019-10-18 23:11:41 +02:00
parent 0783030357
commit afac1f0021
1 changed files with 0 additions and 5 deletions

View File

@ -195,7 +195,6 @@ def get_plugin_manager():
def _prepareconfig(args=None, plugins=None):
warning = None
if args is None:
args = sys.argv[1:]
elif isinstance(args, py.path.local):
@ -213,10 +212,6 @@ def _prepareconfig(args=None, plugins=None):
pluginmanager.consider_pluginarg(plugin)
else:
pluginmanager.register(plugin)
if warning:
from _pytest.warnings import _issue_warning_captured
_issue_warning_captured(warning, hook=config.hook, stacklevel=4)
return pluginmanager.hook.pytest_cmdline_parse(
pluginmanager=pluginmanager, args=args
)