diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2021-11-12 18:35:43 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2021-11-12 18:36:26 -0500 |
| commit | f2de34767a7ba6dc79b73e474b3e2ffdbfd6e75b (patch) | |
| tree | eb3bd8237b23b8103b90755daba108b5a6fd0554 | |
| parent | 8c3aa8400947d633d93dda6a7c7633a17f154a4a (diff) | |
| download | python-setuptools-git-f2de34767a7ba6dc79b73e474b3e2ffdbfd6e75b.tar.gz | |
Skip pip@main tests for Python 3.6, no longer supported. Fixes #2874. Use pip pinned range to resolve pip version based on a repeatable pattern.
| -rw-r--r-- | setuptools/tests/test_virtualenv.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/setuptools/tests/test_virtualenv.py b/setuptools/tests/test_virtualenv.py index 5cd49a0f..00f5f185 100644 --- a/setuptools/tests/test_virtualenv.py +++ b/setuptools/tests/test_virtualenv.py @@ -76,9 +76,14 @@ def _get_pip_versions(): return param if network else mark(param, pytest.mark.skip(reason="no network")) network_versions = [ - mark('pip==19.3.1', pytest.mark.xfail(reason='pypa/pip#6599')), - 'pip==20.0.2', - 'https://github.com/pypa/pip/archive/main.zip', + mark('pip<20', pytest.mark.xfail(reason='pypa/pip#6599')), + 'pip<20.1', + 'pip<21', + 'pip<22', + mark( + 'https://github.com/pypa/pip/archive/main.zip', + pytest.mark.skipif('sys.version_info < (3, 7)'), + ), ] versions = itertools.chain( @@ -103,7 +108,7 @@ def test_pip_upgrade_from_source(pip_version, tmp_src, virtualenv): if pip_version is None: upgrade_pip = () else: - upgrade_pip = ('python -m pip install -U {pip_version} --retries=1',) + upgrade_pip = ('python -m pip install -U "{pip_version}" --retries=1',) virtualenv.run(' && '.join(( 'pip uninstall -y setuptools', 'pip install -U wheel', |
