diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2021-02-28 16:41:06 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-28 16:41:06 -0500 |
| commit | 341972d1c1e804361e3b910e4e564a5da77bfa34 (patch) | |
| tree | 4473b0d04f9583da5483f8b75efae38dd4d84714 /setuptools/tests | |
| parent | 0c63d161ecb96514c4b271abbee74ad952f2c537 (diff) | |
| parent | ce7632f3a75ab8771ec3bc71cf21136a22de55ff (diff) | |
| download | python-setuptools-git-341972d1c1e804361e3b910e4e564a5da77bfa34.tar.gz | |
Merge pull request #2582 from pypa/feature/2550-build-from-source
Rely on backend build path and bootstrap metadata to easily build from source
Diffstat (limited to 'setuptools/tests')
| -rw-r--r-- | setuptools/tests/test_virtualenv.py | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/setuptools/tests/test_virtualenv.py b/setuptools/tests/test_virtualenv.py index fcd5da5d..f13f7997 100644 --- a/setuptools/tests/test_virtualenv.py +++ b/setuptools/tests/test_virtualenv.py @@ -1,6 +1,7 @@ import glob import os import sys +import itertools import pathlib @@ -65,20 +66,29 @@ def _get_pip_versions(): # No network, disable most of these tests network = False + def mark(param, *marks): + if not isinstance(param, type(pytest.param(''))): + param = pytest.param(param) + return param._replace(marks=param.marks + marks) + + def skip_network(param): + return param if network else mark(param, pytest.mark.skip(reason="no network")) + network_versions = [ 'pip==9.0.3', 'pip==10.0.1', 'pip==18.1', - 'pip==19.0.1', + mark('pip==19.3.1', pytest.mark.xfail(reason='pypa/pip#6599')), + 'pip==20.0.2', 'https://github.com/pypa/pip/archive/master.zip', ] - versions = [None] + [ - pytest.param(v, **({} if network else {'marks': pytest.mark.skip})) - for v in network_versions - ] + versions = itertools.chain( + [None], + map(skip_network, network_versions) + ) - return versions + return list(versions) @pytest.mark.parametrize('pip_version', _get_pip_versions()) |
