1ee682
From 621800d5c65aea36c6a1d9b685ff88f35cfce476 Mon Sep 17 00:00:00 2001
1ee682
From: Tomas Orsava <torsava@redhat.com>
1ee682
Date: Fri, 15 Nov 2019 19:44:54 +0100
1ee682
Subject: [PATCH] Mark 6 tests as network tests
1ee682
1ee682
=================================== FAILURES ===================================
1ee682
_______________________________ test_freeze_path _______________________________
1ee682
tmpdir = Path('/tmp/pytest-of-mockbuild/pytest-0/test_freeze_path0')
1ee682
script = <tests.lib.PipTestEnvironment object at 0x7fe950a4caf0>
1ee682
data = <tests.lib.TestData object at 0x7fe950a4cc10>
1ee682
    def test_freeze_path(tmpdir, script, data):
1ee682
        """
1ee682
        Test freeze with --path.
1ee682
        """
1ee682
>       script.pip('install', '--find-links', data.find_links,
1ee682
                   '--target', tmpdir, 'simple==2.0')
1ee682
tests/functional/test_freeze.py:712:
1ee682
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
1ee682
tests/lib/__init__.py:593: in run
1ee682
    _check_stderr(
1ee682
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
1ee682
stderr = "WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'N...t at 0x7fe6435ef280>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/simple/\n"
1ee682
allow_stderr_warning = False, allow_stderr_error = False
1ee682
    def _check_stderr(
1ee682
        stderr, allow_stderr_warning, allow_stderr_error,
1ee682
    ):
1ee682
        """
1ee682
        Check the given stderr for logged warnings and errors.
1ee682
1ee682
        :param stderr: stderr output as a string.
1ee682
        :param allow_stderr_warning: whether a logged warning (or deprecation
1ee682
            message) is allowed. Must be True if allow_stderr_error is True.
1ee682
        :param allow_stderr_error: whether a logged error is allowed.
1ee682
        """
1ee682
        assert not (allow_stderr_error and not allow_stderr_warning)
1ee682
1ee682
        lines = stderr.splitlines()
1ee682
        for line in lines:
1ee682
            # First check for logging errors, which we don't allow during
1ee682
            # tests even if allow_stderr_error=True (since a logging error
1ee682
            # would signal a bug in pip's code).
1ee682
            #    Unlike errors logged with logger.error(), these errors are
1ee682
            # sent directly to stderr and so bypass any configured log formatter.
1ee682
            # The "--- Logging error ---" string is used in Python 3.4+, and
1ee682
            # "Logged from file " is used in Python 2.
1ee682
            if (line.startswith('--- Logging error ---') or
1ee682
                    line.startswith('Logged from file ')):
1ee682
                reason = 'stderr has a logging error, which is never allowed'
1ee682
                msg = make_check_stderr_message(stderr, line=line, reason=reason)
1ee682
                raise RuntimeError(msg)
1ee682
            if allow_stderr_error:
1ee682
                continue
1ee682
1ee682
            if line.startswith('ERROR: '):
1ee682
                reason = (
1ee682
                    'stderr has an unexpected error '
1ee682
                    '(pass allow_stderr_error=True to permit this)'
1ee682
                )
1ee682
                msg = make_check_stderr_message(stderr, line=line, reason=reason)
1ee682
                raise RuntimeError(msg)
1ee682
            if allow_stderr_warning:
1ee682
                continue
1ee682
1ee682
            if (line.startswith('WARNING: ') or
1ee682
                    line.startswith(DEPRECATION_MSG_PREFIX)):
1ee682
                reason = (
1ee682
                    'stderr has an unexpected warning '
1ee682
                    '(pass allow_stderr_warning=True to permit this)'
1ee682
                )
1ee682
                msg = make_check_stderr_message(stderr, line=line, reason=reason)
1ee682
>               raise RuntimeError(msg)
1ee682
E               RuntimeError: stderr has an unexpected warning (pass allow_stderr_warning=True to permit this):
1ee682
E                Caused by line: "WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fe64364c850>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/simple/"
1ee682
E                Complete stderr: WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fe64364c850>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/simple/
1ee682
E               WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fe64364cdc0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/simple/
1ee682
E               WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fe64364cf70>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/simple/
1ee682
E               WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fe6435ef130>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/simple/
1ee682
E               WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fe6435ef280>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/simple/
1ee682
tests/lib/__init__.py:404: RuntimeError
1ee682
________________________ test_freeze_path_exclude_user _________________________
1ee682
tmpdir = Path('/tmp/pytest-of-mockbuild/pytest-0/test_freeze_path_exclude_user0')
1ee682
script = <tests.lib.PipTestEnvironment object at 0x7fe950ec8fa0>
1ee682
data = <tests.lib.TestData object at 0x7fe950ec8a30>
1ee682
    def test_freeze_path_exclude_user(tmpdir, script, data):
1ee682
        """
1ee682
        Test freeze with --path and make sure packages from --user are not picked
1ee682
        up.
1ee682
        """
1ee682
        script.pip_install_local('--find-links', data.find_links,
1ee682
                                 '--user', 'simple2')
1ee682
>       script.pip('install', '--find-links', data.find_links,
1ee682
                   '--target', tmpdir, 'simple==1.0')
1ee682
tests/functional/test_freeze.py:728:
1ee682
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
1ee682
tests/lib/__init__.py:593: in run
1ee682
    _check_stderr(
1ee682
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
1ee682
stderr = "WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'N...t at 0x7f87ae751310>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/simple/\n"
1ee682
allow_stderr_warning = False, allow_stderr_error = False
1ee682
    def _check_stderr(
1ee682
        stderr, allow_stderr_warning, allow_stderr_error,
1ee682
    ):
1ee682
        """
1ee682
        Check the given stderr for logged warnings and errors.
1ee682
1ee682
        :param stderr: stderr output as a string.
1ee682
        :param allow_stderr_warning: whether a logged warning (or deprecation
1ee682
            message) is allowed. Must be True if allow_stderr_error is True.
1ee682
        :param allow_stderr_error: whether a logged error is allowed.
1ee682
        """
1ee682
        assert not (allow_stderr_error and not allow_stderr_warning)
1ee682
1ee682
        lines = stderr.splitlines()
1ee682
        for line in lines:
1ee682
            # First check for logging errors, which we don't allow during
1ee682
            # tests even if allow_stderr_error=True (since a logging error
1ee682
            # would signal a bug in pip's code).
1ee682
            #    Unlike errors logged with logger.error(), these errors are
1ee682
            # sent directly to stderr and so bypass any configured log formatter.
1ee682
            # The "--- Logging error ---" string is used in Python 3.4+, and
1ee682
            # "Logged from file " is used in Python 2.
1ee682
            if (line.startswith('--- Logging error ---') or
1ee682
                    line.startswith('Logged from file ')):
1ee682
                reason = 'stderr has a logging error, which is never allowed'
1ee682
                msg = make_check_stderr_message(stderr, line=line, reason=reason)
1ee682
                raise RuntimeError(msg)
1ee682
            if allow_stderr_error:
1ee682
                continue
1ee682
1ee682
            if line.startswith('ERROR: '):
1ee682
                reason = (
1ee682
                    'stderr has an unexpected error '
1ee682
                    '(pass allow_stderr_error=True to permit this)'
1ee682
                )
1ee682
                msg = make_check_stderr_message(stderr, line=line, reason=reason)
1ee682
                raise RuntimeError(msg)
1ee682
            if allow_stderr_warning:
1ee682
                continue
1ee682
1ee682
            if (line.startswith('WARNING: ') or
1ee682
                    line.startswith(DEPRECATION_MSG_PREFIX)):
1ee682
                reason = (
1ee682
                    'stderr has an unexpected warning '
1ee682
                    '(pass allow_stderr_warning=True to permit this)'
1ee682
                )
1ee682
                msg = make_check_stderr_message(stderr, line=line, reason=reason)
1ee682
>               raise RuntimeError(msg)
1ee682
E               RuntimeError: stderr has an unexpected warning (pass allow_stderr_warning=True to permit this):
1ee682
E                Caused by line: "WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f87ae7aa8e0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/simple/"
1ee682
E                Complete stderr: WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f87ae7aa8e0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/simple/
1ee682
E               WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f87ae7aae50>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/simple/
1ee682
E               WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f87ae751040>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/simple/
1ee682
E               WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f87ae7511c0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/simple/
1ee682
E               WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f87ae751310>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/simple/
1ee682
tests/lib/__init__.py:404: RuntimeError
1ee682
__________________________ test_freeze_path_multiple ___________________________
1ee682
tmpdir = Path('/tmp/pytest-of-mockbuild/pytest-0/test_freeze_path_multiple0')
1ee682
script = <tests.lib.PipTestEnvironment object at 0x7fe950b43fd0>
1ee682
data = <tests.lib.TestData object at 0x7fe950b43df0>
1ee682
    def test_freeze_path_multiple(tmpdir, script, data):
1ee682
        """
1ee682
        Test freeze with multiple --path arguments.
1ee682
        """
1ee682
        path1 = tmpdir / "path1"
1ee682
        os.mkdir(path1)
1ee682
        path2 = tmpdir / "path2"
1ee682
        os.mkdir(path2)
1ee682
>       script.pip('install', '--find-links', data.find_links,
1ee682
                   '--target', path1, 'simple==2.0')
1ee682
tests/functional/test_freeze.py:750:
1ee682
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
1ee682
tests/lib/__init__.py:593: in run
1ee682
    _check_stderr(
1ee682
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
1ee682
stderr = "WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'N...t at 0x7f07e6253280>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/simple/\n"
1ee682
allow_stderr_warning = False, allow_stderr_error = False
1ee682
    def _check_stderr(
1ee682
        stderr, allow_stderr_warning, allow_stderr_error,
1ee682
    ):
1ee682
        """
1ee682
        Check the given stderr for logged warnings and errors.
1ee682
1ee682
        :param stderr: stderr output as a string.
1ee682
        :param allow_stderr_warning: whether a logged warning (or deprecation
1ee682
            message) is allowed. Must be True if allow_stderr_error is True.
1ee682
        :param allow_stderr_error: whether a logged error is allowed.
1ee682
        """
1ee682
        assert not (allow_stderr_error and not allow_stderr_warning)
1ee682
1ee682
        lines = stderr.splitlines()
1ee682
        for line in lines:
1ee682
            # First check for logging errors, which we don't allow during
1ee682
            # tests even if allow_stderr_error=True (since a logging error
1ee682
            # would signal a bug in pip's code).
1ee682
            #    Unlike errors logged with logger.error(), these errors are
1ee682
            # sent directly to stderr and so bypass any configured log formatter.
1ee682
            # The "--- Logging error ---" string is used in Python 3.4+, and
1ee682
            # "Logged from file " is used in Python 2.
1ee682
            if (line.startswith('--- Logging error ---') or
1ee682
                    line.startswith('Logged from file ')):
1ee682
                reason = 'stderr has a logging error, which is never allowed'
1ee682
                msg = make_check_stderr_message(stderr, line=line, reason=reason)
1ee682
                raise RuntimeError(msg)
1ee682
            if allow_stderr_error:
1ee682
                continue
1ee682
1ee682
            if line.startswith('ERROR: '):
1ee682
                reason = (
1ee682
                    'stderr has an unexpected error '
1ee682
                    '(pass allow_stderr_error=True to permit this)'
1ee682
                )
1ee682
                msg = make_check_stderr_message(stderr, line=line, reason=reason)
1ee682
                raise RuntimeError(msg)
1ee682
            if allow_stderr_warning:
1ee682
                continue
1ee682
1ee682
            if (line.startswith('WARNING: ') or
1ee682
                    line.startswith(DEPRECATION_MSG_PREFIX)):
1ee682
                reason = (
1ee682
                    'stderr has an unexpected warning '
1ee682
                    '(pass allow_stderr_warning=True to permit this)'
1ee682
                )
1ee682
                msg = make_check_stderr_message(stderr, line=line, reason=reason)
1ee682
>               raise RuntimeError(msg)
1ee682
E               RuntimeError: stderr has an unexpected warning (pass allow_stderr_warning=True to permit this):
1ee682
E                Caused by line: "WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f07e62ae850>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/simple/"
1ee682
E                Complete stderr: WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f07e62ae850>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/simple/
1ee682
E               WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f07e62aedc0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/simple/
1ee682
E               WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f07e62aef70>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/simple/
1ee682
E               WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f07e6253130>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/simple/
1ee682
E               WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f07e6253280>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/simple/
1ee682
tests/lib/__init__.py:404: RuntimeError
1ee682
_________________ test_install_no_binary_builds_pep_517_wheel __________________
1ee682
script = <tests.lib.PipTestEnvironment object at 0x7fe9509f4e20>
1ee682
data = <tests.lib.TestData object at 0x7fe9509f4640>, with_wheel = None
1ee682
    def test_install_no_binary_builds_pep_517_wheel(script, data, with_wheel):
1ee682
        to_install = data.packages.joinpath('pep517_setup_and_pyproject')
1ee682
>       res = script.pip(
1ee682
            'install', '--no-binary=:all:', '-f', data.find_links, to_install
1ee682
        )
1ee682
tests/functional/test_install.py:1279:
1ee682
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
1ee682
self = <tests.lib.PipTestEnvironment object at 0x7fe9509f4e20>
1ee682
args = ('python', '-m', 'pip', 'install', '--no-binary=:all:', '-f', ...)
1ee682
kw = {'expect_stderr': True}
1ee682
cwd = Path('/tmp/pytest-of-mockbuild/pytest-0/test_install_no_binary_builds_0/workspace/scratch')
1ee682
run_from = None, allow_stderr_error = False, allow_stderr_warning = False
1ee682
expect_error = None
1ee682
    def run(self, *args, **kw):
1ee682
        """
1ee682
        :param allow_stderr_error: whether a logged error is allowed in
1ee682
            stderr.  Passing True for this argument implies
1ee682
            `allow_stderr_warning` since warnings are weaker than errors.
1ee682
        :param allow_stderr_warning: whether a logged warning (or
1ee682
            deprecation message) is allowed in stderr.
1ee682
        :param expect_error: if False (the default), asserts that the command
1ee682
            exits with 0.  Otherwise, asserts that the command exits with a
1ee682
            non-zero exit code.  Passing True also implies allow_stderr_error
1ee682
            and allow_stderr_warning.
1ee682
        :param expect_stderr: whether to allow warnings in stderr (equivalent
1ee682
            to `allow_stderr_warning`).  This argument is an abbreviated
1ee682
            version of `allow_stderr_warning` and is also kept for backwards
1ee682
            compatibility.
1ee682
        """
1ee682
        if self.verbose:
1ee682
            print('>> running %s %s' % (args, kw))
1ee682
1ee682
        cwd = kw.pop('cwd', None)
1ee682
        run_from = kw.pop('run_from', None)
1ee682
        assert not cwd or not run_from, "Don't use run_from; it's going away"
1ee682
        cwd = cwd or run_from or self.cwd
1ee682
        if sys.platform == 'win32':
1ee682
            # Partial fix for ScriptTest.run using `shell=True` on Windows.
1ee682
            args = [str(a).replace('^', '^^').replace('&', '^&') for a in args]
1ee682
1ee682
        # Remove `allow_stderr_error` and `allow_stderr_warning` before
1ee682
        # calling run() because PipTestEnvironment doesn't support them.
1ee682
        allow_stderr_error = kw.pop('allow_stderr_error', None)
1ee682
        allow_stderr_warning = kw.pop('allow_stderr_warning', None)
1ee682
1ee682
        # Propagate default values.
1ee682
        expect_error = kw.get('expect_error')
1ee682
        if expect_error:
1ee682
            # Then default to allowing logged errors.
1ee682
            if allow_stderr_error is not None and not allow_stderr_error:
1ee682
                raise RuntimeError(
1ee682
                    'cannot pass allow_stderr_error=False with '
1ee682
                    'expect_error=True'
1ee682
                )
1ee682
            allow_stderr_error = True
1ee682
1ee682
        elif kw.get('expect_stderr'):
1ee682
            # Then default to allowing logged warnings.
1ee682
            if allow_stderr_warning is not None and not allow_stderr_warning:
1ee682
                raise RuntimeError(
1ee682
                    'cannot pass allow_stderr_warning=False with '
1ee682
                    'expect_stderr=True'
1ee682
                )
1ee682
            allow_stderr_warning = True
1ee682
1ee682
        if allow_stderr_error:
1ee682
            if allow_stderr_warning is not None and not allow_stderr_warning:
1ee682
                raise RuntimeError(
1ee682
                    'cannot pass allow_stderr_warning=False with '
1ee682
                    'allow_stderr_error=True'
1ee682
                )
1ee682
1ee682
        # Default values if not set.
1ee682
        if allow_stderr_error is None:
1ee682
            allow_stderr_error = False
1ee682
        if allow_stderr_warning is None:
1ee682
            allow_stderr_warning = allow_stderr_error
1ee682
1ee682
        # Pass expect_stderr=True to allow any stderr.  We do this because
1ee682
        # we do our checking of stderr further on in check_stderr().
1ee682
        kw['expect_stderr'] = True
1ee682
>       result = super(PipTestEnvironment, self).run(cwd=cwd, *args, **kw)
1ee682
E       AssertionError: Script returned code: 1
1ee682
tests/lib/__init__.py:586: AssertionError
1ee682
----------------------------- Captured stdout call -----------------------------
1ee682
Script result: python -m pip install --no-binary=:all: -f file:///tmp/pytest-of-mockbuild/pytest-0/test_install_no_binary_builds_0/data/packages /tmp/pytest-of-mockbuild/pytest-0/test_install_no_binary_builds_0/data/packages/pep517_setup_and_pyproject
1ee682
  return code: 1
1ee682
-- stderr: --------------------
1ee682
  ERROR: Command errored out with exit status 1:
1ee682
   command: /tmp/pytest-of-mockbuild/pytest-0/test_install_no_binary_builds_0/workspace/venv/bin/python /builddir/build/BUILDROOT/python-pip-19.3.1-1.fc32.noarch/usr/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pytest-of-mockbuild/pytest-0/test_install_no_binary_builds_0/workspace/tmp/pip-build-env-ntp1m4dh/overlay --no-warn-script-location --no-binary :all: --only-binary :none: -i https://pypi.org/simple --find-links file:///tmp/pytest-of-mockbuild/pytest-0/test_install_no_binary_builds_0/data/packages -- setuptools
1ee682
       cwd: None
1ee682
  Complete output (28 lines):
1ee682
  Looking in links: file:///tmp/pytest-of-mockbuild/pytest-0/test_install_no_binary_builds_0/data/packages
1ee682
  WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f7234ef1e50>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/setuptools/
1ee682
  WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f7234e92040>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/setuptools/
1ee682
  WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f7234e921c0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/setuptools/
1ee682
  WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f7234e92340>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/setuptools/
1ee682
  WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f7234e924c0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/setuptools/
1ee682
  Processing /tmp/pytest-of-mockbuild/pytest-0/test_install_no_binary_builds_0/data/packages/setuptools-0.9.6.tar.gz
1ee682
      ERROR: Command errored out with exit status 1:
1ee682
       command: /tmp/pytest-of-mockbuild/pytest-0/test_install_no_binary_builds_0/workspace/venv/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pytest-of-mockbuild/pytest-0/test_install_no_binary_builds_0/workspace/tmp/pip-install-b_6lf4z6/setuptools/setup.py'"'"'; __file__='"'"'/tmp/pytest-of-mockbuild/pytest-0/test_install_no_binary_builds_0/workspace/tmp/pip-install-b_6lf4z6/setuptools/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pytest-of-mockbuild/pytest-0/test_install_no_binary_builds_0/workspace/tmp/pip-install-b_6lf4z6/setuptools/pip-egg-info
1ee682
           cwd: /tmp/pytest-of-mockbuild/pytest-0/test_install_no_binary_builds_0/workspace/tmp/pip-install-b_6lf4z6/setuptools/
1ee682
      Complete output (15 lines):
1ee682
      Traceback (most recent call last):
1ee682
        File "<string>", line 1, in <module>
1ee682
        File "/tmp/pytest-of-mockbuild/pytest-0/test_install_no_binary_builds_0/workspace/tmp/pip-install-b_6lf4z6/setuptools/setuptools/__init__.py", line 2, in <module>
1ee682
          from setuptools.extension import Extension, Library
1ee682
        File "/tmp/pytest-of-mockbuild/pytest-0/test_install_no_binary_builds_0/workspace/tmp/pip-install-b_6lf4z6/setuptools/setuptools/extension.py", line 5, in <module>
1ee682
          from setuptools.dist import _get_unpatched
1ee682
        File "/tmp/pytest-of-mockbuild/pytest-0/test_install_no_binary_builds_0/workspace/tmp/pip-install-b_6lf4z6/setuptools/setuptools/dist.py", line 7, in <module>
1ee682
          from setuptools.command.install import install
1ee682
        File "/tmp/pytest-of-mockbuild/pytest-0/test_install_no_binary_builds_0/workspace/tmp/pip-install-b_6lf4z6/setuptools/setuptools/command/__init__.py", line 8, in <module>
1ee682
          from setuptools.command import install_scripts
1ee682
        File "/tmp/pytest-of-mockbuild/pytest-0/test_install_no_binary_builds_0/workspace/tmp/pip-install-b_6lf4z6/setuptools/setuptools/command/install_scripts.py", line 3, in <module>
1ee682
          from pkg_resources import Distribution, PathMetadata, ensure_directory
1ee682
        File "/tmp/pytest-of-mockbuild/pytest-0/test_install_no_binary_builds_0/workspace/tmp/pip-install-b_6lf4z6/setuptools/pkg_resources.py", line 1545, in <module>
1ee682
          register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
1ee682
      AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
1ee682
      ----------------------------------------
1ee682
  ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
1ee682
  ----------------------------------------
1ee682
ERROR: Command errored out with exit status 1: /tmp/pytest-of-mockbuild/pytest-0/test_install_no_binary_builds_0/workspace/venv/bin/python /builddir/build/BUILDROOT/python-pip-19.3.1-1.fc32.noarch/usr/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pytest-of-mockbuild/pytest-0/test_install_no_binary_builds_0/workspace/tmp/pip-build-env-ntp1m4dh/overlay --no-warn-script-location --no-binary :all: --only-binary :none: -i https://pypi.org/simple --find-links file:///tmp/pytest-of-mockbuild/pytest-0/test_install_no_binary_builds_0/data/packages -- setuptools Check the logs for full command output.
1ee682
-- stdout: --------------------
1ee682
Looking in links: file:///tmp/pytest-of-mockbuild/pytest-0/test_install_no_binary_builds_0/data/packages
1ee682
Processing /tmp/pytest-of-mockbuild/pytest-0/test_install_no_binary_builds_0/data/packages/pep517_setup_and_pyproject
1ee682
  Installing build dependencies: started
1ee682
  Installing build dependencies: finished with status 'error'
1ee682
_______________________ test_config_file_override_stack ________________________
1ee682
script = <tests.lib.PipTestEnvironment object at 0x7fe950d9b7f0>
1ee682
virtualenv = <VirtualEnvironment /tmp/pytest-of-mockbuild/pytest-0/test_config_file_override_stac0/workspace/venv>
1ee682
    def test_config_file_override_stack(script, virtualenv):
1ee682
        """
1ee682
        Test config files (global, overriding a global config with a
1ee682
        local, overriding all with a command line flag).
1ee682
1ee682
        """
1ee682
        fd, config_file = tempfile.mkstemp('-pip.cfg', 'test-')
1ee682
        try:
1ee682
>           _test_config_file_override_stack(script, virtualenv, config_file)
1ee682
tests/functional/test_install_config.py:144:
1ee682
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
1ee682
tests/functional/test_install_config.py:172: in _test_config_file_override_stack
1ee682
    result = script.pip(
1ee682
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
1ee682
self = <tests.lib.PipTestEnvironment object at 0x7fe950d9b7f0>
1ee682
args = ('python', '-m', 'pip', 'install', '-vvv', '--index-url', ...)
1ee682
kw = {'expect_stderr': True}
1ee682
cwd = Path('/tmp/pytest-of-mockbuild/pytest-0/test_config_file_override_stac0/workspace/scratch')
1ee682
run_from = None, allow_stderr_error = False, allow_stderr_warning = False
1ee682
expect_error = None
1ee682
    def run(self, *args, **kw):
1ee682
        """
1ee682
        :param allow_stderr_error: whether a logged error is allowed in
1ee682
            stderr.  Passing True for this argument implies
1ee682
            `allow_stderr_warning` since warnings are weaker than errors.
1ee682
        :param allow_stderr_warning: whether a logged warning (or
1ee682
            deprecation message) is allowed in stderr.
1ee682
        :param expect_error: if False (the default), asserts that the command
1ee682
            exits with 0.  Otherwise, asserts that the command exits with a
1ee682
            non-zero exit code.  Passing True also implies allow_stderr_error
1ee682
            and allow_stderr_warning.
1ee682
        :param expect_stderr: whether to allow warnings in stderr (equivalent
1ee682
            to `allow_stderr_warning`).  This argument is an abbreviated
1ee682
            version of `allow_stderr_warning` and is also kept for backwards
1ee682
            compatibility.
1ee682
        """
1ee682
        if self.verbose:
1ee682
            print('>> running %s %s' % (args, kw))
1ee682
1ee682
        cwd = kw.pop('cwd', None)
1ee682
        run_from = kw.pop('run_from', None)
1ee682
        assert not cwd or not run_from, "Don't use run_from; it's going away"
1ee682
        cwd = cwd or run_from or self.cwd
1ee682
        if sys.platform == 'win32':
1ee682
            # Partial fix for ScriptTest.run using `shell=True` on Windows.
1ee682
            args = [str(a).replace('^', '^^').replace('&', '^&') for a in args]
1ee682
1ee682
        # Remove `allow_stderr_error` and `allow_stderr_warning` before
1ee682
        # calling run() because PipTestEnvironment doesn't support them.
1ee682
        allow_stderr_error = kw.pop('allow_stderr_error', None)
1ee682
        allow_stderr_warning = kw.pop('allow_stderr_warning', None)
1ee682
1ee682
        # Propagate default values.
1ee682
        expect_error = kw.get('expect_error')
1ee682
        if expect_error:
1ee682
            # Then default to allowing logged errors.
1ee682
            if allow_stderr_error is not None and not allow_stderr_error:
1ee682
                raise RuntimeError(
1ee682
                    'cannot pass allow_stderr_error=False with '
1ee682
                    'expect_error=True'
1ee682
                )
1ee682
            allow_stderr_error = True
1ee682
1ee682
        elif kw.get('expect_stderr'):
1ee682
            # Then default to allowing logged warnings.
1ee682
            if allow_stderr_warning is not None and not allow_stderr_warning:
1ee682
                raise RuntimeError(
1ee682
                    'cannot pass allow_stderr_warning=False with '
1ee682
                    'expect_stderr=True'
1ee682
                )
1ee682
            allow_stderr_warning = True
1ee682
1ee682
        if allow_stderr_error:
1ee682
            if allow_stderr_warning is not None and not allow_stderr_warning:
1ee682
                raise RuntimeError(
1ee682
                    'cannot pass allow_stderr_warning=False with '
1ee682
                    'allow_stderr_error=True'
1ee682
                )
1ee682
1ee682
        # Default values if not set.
1ee682
        if allow_stderr_error is None:
1ee682
            allow_stderr_error = False
1ee682
        if allow_stderr_warning is None:
1ee682
            allow_stderr_warning = allow_stderr_error
1ee682
1ee682
        # Pass expect_stderr=True to allow any stderr.  We do this because
1ee682
        # we do our checking of stderr further on in check_stderr().
1ee682
        kw['expect_stderr'] = True
1ee682
>       result = super(PipTestEnvironment, self).run(cwd=cwd, *args, **kw)
1ee682
E       AssertionError: Script returned code: 1
1ee682
tests/lib/__init__.py:586: AssertionError
1ee682
----------------------------- Captured stdout call -----------------------------
1ee682
Script result: python -m pip install -vvv --index-url https://pypi.org/simple/ INITools
1ee682
  return code: 1
1ee682
-- stderr: --------------------
1ee682
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f9669c3d8b0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/initools/
1ee682
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f9669c3da60>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/initools/
1ee682
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f9669c3dbe0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/initools/
1ee682
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f9669c3dd60>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/initools/
1ee682
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f966900f490>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/initools/
1ee682
ERROR: Could not find a version that satisfies the requirement INITools (from versions: none)
1ee682
ERROR: No matching distribution found for INITools
1ee682
-- stdout: --------------------
1ee682
Created temporary directory: /tmp/pytest-of-mockbuild/pytest-0/test_config_file_override_stac0/workspace/tmp/pip-ephem-wheel-cache-6gj33ens
1ee682
Created temporary directory: /tmp/pytest-of-mockbuild/pytest-0/test_config_file_override_stac0/workspace/tmp/pip-req-tracker-s7_2cwgc
1ee682
Created requirements tracker '/tmp/pytest-of-mockbuild/pytest-0/test_config_file_override_stac0/workspace/tmp/pip-req-tracker-s7_2cwgc'
1ee682
Created temporary directory: /tmp/pytest-of-mockbuild/pytest-0/test_config_file_override_stac0/workspace/tmp/pip-install-_91mh3df
1ee682
Looking in indexes: https://pypi.org/simple/
1ee682
1 location(s) to search for versions of INITools:
1ee682
* https://pypi.org/simple/initools/
1ee682
Getting page https://pypi.org/simple/initools/
1ee682
Found index url https://pypi.org/simple/
1ee682
Looking up "https://pypi.org/simple/initools/" in the cache
1ee682
Request header has "max_age" as 0, cache bypassed
1ee682
Starting new HTTPS connection (1): pypi.org:443
1ee682
Incremented Retry for (url='/simple/initools/'): Retry(total=4, connect=None, read=None, redirect=None, status=None)
1ee682
Starting new HTTPS connection (2): pypi.org:443
1ee682
Incremented Retry for (url='/simple/initools/'): Retry(total=3, connect=None, read=None, redirect=None, status=None)
1ee682
Starting new HTTPS connection (3): pypi.org:443
1ee682
Incremented Retry for (url='/simple/initools/'): Retry(total=2, connect=None, read=None, redirect=None, status=None)
1ee682
Starting new HTTPS connection (4): pypi.org:443
1ee682
Incremented Retry for (url='/simple/initools/'): Retry(total=1, connect=None, read=None, redirect=None, status=None)
1ee682
Starting new HTTPS connection (5): pypi.org:443
1ee682
Incremented Retry for (url='/simple/initools/'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
1ee682
Starting new HTTPS connection (6): pypi.org:443
1ee682
Could not fetch URL https://pypi.org/simple/initools/: connection error: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/initools/ (Caused by NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f9669c15b50>: Failed to establish a new connection: [Errno -2] Name or service not known')) - skipping
1ee682
Given no hashes to check 0 links for project 'INITools': discarding no candidates
1ee682
Cleaning up...
1ee682
Removed build tracker '/tmp/pytest-of-mockbuild/pytest-0/test_config_file_override_stac0/workspace/tmp/pip-req-tracker-s7_2cwgc'
1ee682
Exception information:
1ee682
Traceback (most recent call last):
1ee682
  File "/builddir/build/BUILDROOT/python-pip-19.3.1-1.fc32.noarch/usr/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 153, in _main
1ee682
    status = self.run(options, args)
1ee682
  File "/builddir/build/BUILDROOT/python-pip-19.3.1-1.fc32.noarch/usr/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 401, in run
1ee682
    resolver.resolve(requirement_set)
1ee682
  File "/builddir/build/BUILDROOT/python-pip-19.3.1-1.fc32.noarch/usr/lib/python3.8/site-packages/pip/_internal/legacy_resolve.py", line 202, in resolve
1ee682
    self._resolve_one(requirement_set, req)
1ee682
  File "/builddir/build/BUILDROOT/python-pip-19.3.1-1.fc32.noarch/usr/lib/python3.8/site-packages/pip/_internal/legacy_resolve.py", line 368, in _resolve_one
1ee682
    abstract_dist = self._get_abstract_dist_for(req_to_install)
1ee682
  File "/builddir/build/BUILDROOT/python-pip-19.3.1-1.fc32.noarch/usr/lib/python3.8/site-packages/pip/_internal/legacy_resolve.py", line 314, in _get_abstract_dist_for
1ee682
    req.populate_link(self.finder, upgrade_allowed, self.require_hashes)
1ee682
  File "/builddir/build/BUILDROOT/python-pip-19.3.1-1.fc32.noarch/usr/lib/python3.8/site-packages/pip/_internal/req/req_install.py", line 226, in populate_link
1ee682
    self.link = finder.find_requirement(self, upgrade)
1ee682
  File "/builddir/build/BUILDROOT/python-pip-19.3.1-1.fc32.noarch/usr/lib/python3.8/site-packages/pip/_internal/index.py", line 905, in find_requirement
1ee682
    raise DistributionNotFound(
1ee682
pip._internal.exceptions.DistributionNotFound: No matching distribution found for INITools
1ee682
_______________________ test_no_upgrade_unless_requested _______________________
1ee682
script = <tests.lib.PipTestEnvironment object at 0x7fe950d86070>
1ee682
    def test_no_upgrade_unless_requested(script):
1ee682
        """
1ee682
        No upgrade if not specifically requested.
1ee682
1ee682
        """
1ee682
>       script.pip('install', 'INITools==0.1')
1ee682
tests/functional/test_install_upgrade.py:16:
1ee682
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
1ee682
self = <tests.lib.PipTestEnvironment object at 0x7fe950d86070>
1ee682
args = ('python', '-m', 'pip', 'install', 'INITools==0.1')
1ee682
kw = {'expect_stderr': True}
1ee682
cwd = Path('/tmp/pytest-of-mockbuild/pytest-0/test_no_upgrade_unless_request0/workspace/scratch')
1ee682
run_from = None, allow_stderr_error = False, allow_stderr_warning = False
1ee682
expect_error = None
1ee682
    def run(self, *args, **kw):
1ee682
        """
1ee682
        :param allow_stderr_error: whether a logged error is allowed in
1ee682
            stderr.  Passing True for this argument implies
1ee682
            `allow_stderr_warning` since warnings are weaker than errors.
1ee682
        :param allow_stderr_warning: whether a logged warning (or
1ee682
            deprecation message) is allowed in stderr.
1ee682
        :param expect_error: if False (the default), asserts that the command
1ee682
            exits with 0.  Otherwise, asserts that the command exits with a
1ee682
            non-zero exit code.  Passing True also implies allow_stderr_error
1ee682
            and allow_stderr_warning.
1ee682
        :param expect_stderr: whether to allow warnings in stderr (equivalent
1ee682
            to `allow_stderr_warning`).  This argument is an abbreviated
1ee682
            version of `allow_stderr_warning` and is also kept for backwards
1ee682
            compatibility.
1ee682
        """
1ee682
        if self.verbose:
1ee682
            print('>> running %s %s' % (args, kw))
1ee682
1ee682
        cwd = kw.pop('cwd', None)
1ee682
        run_from = kw.pop('run_from', None)
1ee682
        assert not cwd or not run_from, "Don't use run_from; it's going away"
1ee682
        cwd = cwd or run_from or self.cwd
1ee682
        if sys.platform == 'win32':
1ee682
            # Partial fix for ScriptTest.run using `shell=True` on Windows.
1ee682
            args = [str(a).replace('^', '^^').replace('&', '^&') for a in args]
1ee682
1ee682
        # Remove `allow_stderr_error` and `allow_stderr_warning` before
1ee682
        # calling run() because PipTestEnvironment doesn't support them.
1ee682
        allow_stderr_error = kw.pop('allow_stderr_error', None)
1ee682
        allow_stderr_warning = kw.pop('allow_stderr_warning', None)
1ee682
1ee682
        # Propagate default values.
1ee682
        expect_error = kw.get('expect_error')
1ee682
        if expect_error:
1ee682
            # Then default to allowing logged errors.
1ee682
            if allow_stderr_error is not None and not allow_stderr_error:
1ee682
                raise RuntimeError(
1ee682
                    'cannot pass allow_stderr_error=False with '
1ee682
                    'expect_error=True'
1ee682
                )
1ee682
            allow_stderr_error = True
1ee682
1ee682
        elif kw.get('expect_stderr'):
1ee682
            # Then default to allowing logged warnings.
1ee682
            if allow_stderr_warning is not None and not allow_stderr_warning:
1ee682
                raise RuntimeError(
1ee682
                    'cannot pass allow_stderr_warning=False with '
1ee682
                    'expect_stderr=True'
1ee682
                )
1ee682
            allow_stderr_warning = True
1ee682
1ee682
        if allow_stderr_error:
1ee682
            if allow_stderr_warning is not None and not allow_stderr_warning:
1ee682
                raise RuntimeError(
1ee682
                    'cannot pass allow_stderr_warning=False with '
1ee682
                    'allow_stderr_error=True'
1ee682
                )
1ee682
1ee682
        # Default values if not set.
1ee682
        if allow_stderr_error is None:
1ee682
            allow_stderr_error = False
1ee682
        if allow_stderr_warning is None:
1ee682
            allow_stderr_warning = allow_stderr_error
1ee682
1ee682
        # Pass expect_stderr=True to allow any stderr.  We do this because
1ee682
        # we do our checking of stderr further on in check_stderr().
1ee682
        kw['expect_stderr'] = True
1ee682
>       result = super(PipTestEnvironment, self).run(cwd=cwd, *args, **kw)
1ee682
E       AssertionError: Script returned code: 1
1ee682
tests/lib/__init__.py:586: AssertionError
1ee682
----------------------------- Captured stdout call -----------------------------
1ee682
Script result: python -m pip install INITools==0.1
1ee682
  return code: 1
1ee682
-- stderr: --------------------
1ee682
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fd66cc36700>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/initools/
1ee682
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fd66cc36c40>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/initools/
1ee682
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fd66cc36dc0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/initools/
1ee682
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fd66cc36f40>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/initools/
1ee682
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fd66be48100>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/initools/
1ee682
ERROR: Could not find a version that satisfies the requirement INITools==0.1 (from versions: none)
1ee682
ERROR: No matching distribution found for INITools==0.1
1ee682
---
1ee682
 tests/functional/test_freeze.py          | 3 +++
1ee682
 tests/functional/test_install.py         | 1 +
1ee682
 tests/functional/test_install_config.py  | 1 +
1ee682
 tests/functional/test_install_upgrade.py | 1 +
1ee682
 4 files changed, 6 insertions(+)
1ee682
1ee682
diff --git a/tests/functional/test_freeze.py b/tests/functional/test_freeze.py
1ee682
index 546a482..aabb0ca 100644
1ee682
--- a/tests/functional/test_freeze.py
1ee682
+++ b/tests/functional/test_freeze.py
1ee682
@@ -705,6 +705,7 @@ def test_freeze_user(script, virtualenv, data):
1ee682
     assert 'simple2' not in result.stdout
1ee682
 
1ee682
 
1ee682
+@pytest.mark.network
1ee682
 def test_freeze_path(tmpdir, script, data):
1ee682
     """
1ee682
     Test freeze with --path.
1ee682
@@ -718,6 +719,7 @@ def test_freeze_path(tmpdir, script, data):
1ee682
     _check_output(result.stdout, expected)
1ee682
 
1ee682
 
1ee682
+@pytest.mark.network
1ee682
 def test_freeze_path_exclude_user(tmpdir, script, data):
1ee682
     """
1ee682
     Test freeze with --path and make sure packages from --user are not picked
1ee682
@@ -739,6 +741,7 @@ def test_freeze_path_exclude_user(tmpdir, script, data):
1ee682
     _check_output(result.stdout, expected)
1ee682
 
1ee682
 
1ee682
+@pytest.mark.network
1ee682
 def test_freeze_path_multiple(tmpdir, script, data):
1ee682
     """
1ee682
     Test freeze with multiple --path arguments.
1ee682
diff --git a/tests/functional/test_install.py b/tests/functional/test_install.py
1ee682
index 0bea054..b816df6 100644
1ee682
--- a/tests/functional/test_install.py
1ee682
+++ b/tests/functional/test_install.py
1ee682
@@ -1274,6 +1274,7 @@ def test_install_no_binary_disables_building_wheels(script, data, with_wheel):
1ee682
     assert "Running setup.py install for upper" in str(res), str(res)
1ee682
 
1ee682
 
1ee682
+@pytest.mark.network
1ee682
 def test_install_no_binary_builds_pep_517_wheel(script, data, with_wheel):
1ee682
     to_install = data.packages.joinpath('pep517_setup_and_pyproject')
1ee682
     res = script.pip(
1ee682
diff --git a/tests/functional/test_install_config.py b/tests/functional/test_install_config.py
1ee682
index bcf83f1..c9c60a2 100644
1ee682
--- a/tests/functional/test_install_config.py
1ee682
+++ b/tests/functional/test_install_config.py
1ee682
@@ -133,6 +133,7 @@ def test_command_line_appends_correctly(script, data):
1ee682
     ), 'stdout: {}'.format(result.stdout)
1ee682
 
1ee682
 
1ee682
+@pytest.mark.network
1ee682
 def test_config_file_override_stack(script, virtualenv):
1ee682
     """
1ee682
     Test config files (global, overriding a global config with a
1ee682
diff --git a/tests/functional/test_install_upgrade.py b/tests/functional/test_install_upgrade.py
1ee682
index 36b518b..c34a961 100644
1ee682
--- a/tests/functional/test_install_upgrade.py
1ee682
+++ b/tests/functional/test_install_upgrade.py
1ee682
@@ -8,6 +8,7 @@ from tests.lib import assert_all_changes, pyversion
1ee682
 from tests.lib.local_repos import local_checkout
1ee682
 
1ee682
 
1ee682
+@pytest.mark.network
1ee682
 def test_no_upgrade_unless_requested(script):
1ee682
     """
1ee682
     No upgrade if not specifically requested.
1ee682
-- 
1ee682
2.20.1
1ee682