Patchwork tests: tell pip not to check for a newer version

login
register
mail settings
Submitter Danek Duvall
Date June 20, 2017, 9:39 p.m.
Message ID <657e3a53dff24205ebea.1497994781@smelly>
Download mbox | patch
Permalink /patch/21546/
State Accepted
Headers show

Comments

Danek Duvall - June 20, 2017, 9:39 p.m.
# HG changeset patch
# User Danek Duvall <danek.duvall@oracle.com>
# Date 1497994553 25200
#      Tue Jun 20 14:35:53 2017 -0700
# Node ID 657e3a53dff24205ebeaffa72a378103ba8338d5
# Parent  404b6acfa192b630fab3c371da072eb8b713d4c1
tests: tell pip not to check for a newer version

pip will check to see if it's the latest version, and complain if it isn't.
The --no-index flag implies the --disable-pip-version-check flag, and makes
the warning (and any associated network activity) go away.
Augie Fackler - June 21, 2017, 12:28 a.m.
> On Jun 20, 2017, at 5:39 PM, danek.duvall@oracle.com wrote:
> 
> # HG changeset patch
> # User Danek Duvall <danek.duvall@oracle.com>
> # Date 1497994553 25200
> #      Tue Jun 20 14:35:53 2017 -0700
> # Node ID 657e3a53dff24205ebeaffa72a378103ba8338d5
> # Parent  404b6acfa192b630fab3c371da072eb8b713d4c1
> tests: tell pip not to check for a newer version

Queued this, many thanks.

> 
> pip will check to see if it's the latest version, and complain if it isn't.
> The --no-index flag implies the --disable-pip-version-check flag, and makes
> the warning (and any associated network activity) go away.
> 
> diff --git a/tests/test-install.t b/tests/test-install.t
> --- a/tests/test-install.t
> +++ b/tests/test-install.t
> @@ -188,7 +188,7 @@ the default for them.
>   $ $PYTHON -m virtualenv --no-site-packages --never-download installenv >> pip.log
> Note: we use this weird path to run pip and hg to avoid platform differences,
> since it's bin on most platforms but Scripts on Windows.
> -  $ ./installenv/*/pip install $TESTDIR/.. >> pip.log
> +  $ ./installenv/*/pip install --no-index $TESTDIR/.. >> pip.log
>   $ ./installenv/*/hg debuginstall || cat pip.log
>   checking encoding (ascii)...
>   checking Python executable (*) (glob)

Patch

diff --git a/tests/test-install.t b/tests/test-install.t
--- a/tests/test-install.t
+++ b/tests/test-install.t
@@ -188,7 +188,7 @@  the default for them.
   $ $PYTHON -m virtualenv --no-site-packages --never-download installenv >> pip.log
 Note: we use this weird path to run pip and hg to avoid platform differences,
 since it's bin on most platforms but Scripts on Windows.
-  $ ./installenv/*/pip install $TESTDIR/.. >> pip.log
+  $ ./installenv/*/pip install --no-index $TESTDIR/.. >> pip.log
   $ ./installenv/*/hg debuginstall || cat pip.log
   checking encoding (ascii)...
   checking Python executable (*) (glob)