

def pip(self, *args, **kwargs):
    if ((pyversion_tuple < (2, 7, 9)) and args and (args[0] in ('search', 'install', 'download'))):
        kwargs['expect_stderr'] = True
    if (pyversion_tuple[:2] == (2, 6)):
        kwargs['expect_stderr'] = True
    return self.run('pip', *args, **kwargs)

dataset/ETHPy150Open pypa/pip/tests/lib/__init__.py PipTestEnvironment.pip/original