提交 9efd2933 编写于 作者: C Chris Jerdonek

Remove logic for SSLContext warning on old versions of Python.

上级 5b9065cf
......@@ -462,12 +462,6 @@ class PipTestEnvironment(TestFileEnvironment):
def pip(self, *args, **kwargs):
if self.pip_expect_warning:
kwargs['allow_stderr_warning'] = True
# On old versions of Python, urllib3/requests will raise a warning
# about the lack of an SSLContext. Expect it when running commands
# that will touch the outside world.
if (pyversion_tuple < (2, 7, 9) and
args and args[0] in ('search', 'install', 'download')):
kwargs['expect_stderr'] = True
if kwargs.pop('use_module', True):
exe = 'python'
args = ('-m', 'pip') + args
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册