Remove logic for SSLContext warning on old versions of Python.
@@ -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
