Skip to content

Commit df98748

Browse files
committed
Skip warnings-as-errors test
There is no clean way, that we know of so far, for fixing this on 3.10+.
1 parent 35b938b commit df98748

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/functional/test_warning.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sys
12
import textwrap
23

34
import pytest
@@ -44,6 +45,10 @@ def test_flag_does_nothing_if_python_version_is_not_2(script):
4445
script.pip("list", "--no-python-version-warning")
4546

4647

48+
@pytest.mark.skipif(
49+
sys.version_info >= (3, 10),
50+
reason="distutils is deprecated in 3.10+"
51+
)
4752
def test_pip_works_with_warnings_as_errors(script):
4853
script.environ['PYTHONWARNINGS'] = 'error'
4954
script.pip("--version")

0 commit comments

Comments
 (0)