提交 b0eed267 编写于 作者: C Chris Hunt

Remove autocomplete import from pip._internal.__init__

上级 09fd200c
......@@ -11,7 +11,6 @@ from pip._vendor.urllib3.exceptions import (
)
import pip._internal.utils.inject_securetransport # noqa
from pip._internal.cli.autocompletion import autocomplete
# Raised when using --trusted-host.
warnings.filterwarnings("ignore", category=InsecureRequestWarning)
......
......@@ -78,7 +78,9 @@ def setup_completion(script, words, cword, cwd=None):
# expect_error is True because autocomplete exists with 1 status code
result = script.run(
'python', '-c', 'import pip._internal;pip._internal.autocomplete()',
'python', '-c',
'from pip._internal.cli.autocompletion import autocomplete;'
'autocomplete()',
expect_error=True,
cwd=cwd,
)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册