summaryrefslogtreecommitdiff
path: root/setuptools/tests
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2022-12-16 13:54:35 -0500
committerJason R. Coombs <jaraco@jaraco.com>2022-12-16 13:54:46 -0500
commit46dc02c5d129ba920877884a7426039a8dc899d5 (patch)
treed145ee62d51aa4f268979fa8f09023e93d00648a /setuptools/tests
parentf450469fbdfc0c4a15cf39afeb120e44fd04d4f1 (diff)
downloadpython-setuptools-git-46dc02c5d129ba920877884a7426039a8dc899d5.tar.gz
xfail tests on Python 3.12+ for older pips. Ref #3727.
Diffstat (limited to 'setuptools/tests')
-rw-r--r--setuptools/tests/test_virtualenv.py16
1 files changed, 14 insertions, 2 deletions
diff --git a/setuptools/tests/test_virtualenv.py b/setuptools/tests/test_virtualenv.py
index 098d73ad..172e9e5f 100644
--- a/setuptools/tests/test_virtualenv.py
+++ b/setuptools/tests/test_virtualenv.py
@@ -56,8 +56,20 @@ def access_pypi():
[
None,
pytest.param('pip<20', marks=pytest.mark.xfail(reason='pypa/pip#6599')),
- 'pip<20.1',
- 'pip<21',
+ pytest.param(
+ 'pip<20.1',
+ marks=pytest.mark.xfail(
+ 'sys.version_info > (3, 12)',
+ reason="pip 21 requried for Python 3.12 and later",
+ ),
+ ),
+ pytest.param(
+ 'pip<21',
+ marks=pytest.mark.xfail(
+ 'sys.version_info > (3, 12)',
+ reason="pip 21 requried for Python 3.12 and later",
+ ),
+ ),
'pip<22',
pytest.param(
'https://github.com/pypa/pip/archive/main.zip',