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