Skip to content

Commit

Permalink
Remove unreachable code from config._prepareconfig (#6001)
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed authored Oct 18, 2019
2 parents 0783030 + afac1f0 commit 5e7b8d8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/_pytest/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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
)
Expand Down

0 comments on commit 5e7b8d8

Please sign in to comment.