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