Skip to content

Commit 46dc02c

Browse files
committed
xfail tests on Python 3.12+ for older pips. Ref #3727.
1 parent f450469 commit 46dc02c

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

setuptools/tests/test_virtualenv.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,20 @@ def access_pypi():
5656
[
5757
None,
5858
pytest.param('pip<20', marks=pytest.mark.xfail(reason='pypa/pip#6599')),
59-
'pip<20.1',
60-
'pip<21',
59+
pytest.param(
60+
'pip<20.1',
61+
marks=pytest.mark.xfail(
62+
'sys.version_info > (3, 12)',
63+
reason="pip 21 requried for Python 3.12 and later",
64+
),
65+
),
66+
pytest.param(
67+
'pip<21',
68+
marks=pytest.mark.xfail(
69+
'sys.version_info > (3, 12)',
70+
reason="pip 21 requried for Python 3.12 and later",
71+
),
72+
),
6173
'pip<22',
6274
pytest.param(
6375
'https://github.com/pypa/pip/archive/main.zip',

0 commit comments

Comments
 (0)