Skip to content

Commit

Permalink
Skip warnings-as-errors test
Browse files Browse the repository at this point in the history
There is no clean way, that we know of so far, for fixing this on 3.10+.
  • Loading branch information
pradyunsg committed Aug 6, 2021
1 parent 3422b80 commit a86e819
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/functional/test_warning.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
import textwrap

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


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

0 comments on commit a86e819

Please sign in to comment.