Merge pull request #55350 from dwoz/win_tests

Fix failing pip tests
This commit is contained in:
Daniel Wozniak 2019-11-18 17:12:55 -07:00 committed by GitHub
commit a62c74126a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -433,6 +433,7 @@ def install(pkgs=None, # pylint: disable=R0912,R0913,R0914
no_cache_dir=False,
cache_dir=None,
no_binary=None,
disable_version_check=False,
**kwargs):
'''
Install packages with pip
@ -604,6 +605,11 @@ def install(pkgs=None, # pylint: disable=R0912,R0913,R0914
no_cache_dir
Disable the cache.
disable_version_check
Pip may periodically check PyPI to determine whether a new version of
pip is available to download. Passing True for this option disables
that check.
CLI Example:
.. code-block:: bash
@ -756,6 +762,9 @@ def install(pkgs=None, # pylint: disable=R0912,R0913,R0914
)
cmd.extend(['--mirrors', mirror])
if disable_version_check:
cmd.extend(['--disable-pip-version-check'])
if build:
cmd.extend(['--build', build])

View File

@ -901,6 +901,7 @@ def installed(name,
use_vt=use_vt,
trusted_host=trusted_host,
no_cache_dir=no_cache_dir,
disable_version_check=True,
**kwargs
)