diff --git a/tests/management/commands/test_pipchecker.py b/tests/management/commands/test_pipchecker.py index b6a625526..4944471b8 100644 --- a/tests/management/commands/test_pipchecker.py +++ b/tests/management/commands/test_pipchecker.py @@ -6,6 +6,7 @@ import pip import pkg_resources +import pytest from django.core.management import call_command from django.test import TestCase from io import StringIO @@ -92,6 +93,7 @@ def test_pipchecker_with_github_url_requirement(self): self.assertTrue(value.endswith('repo is not frozen\n'), value) + @pytest.mark.skipif(sys.version_info >= (3, 12), reason="pip 20.1 is not compatible with Python 3.12+") def test_pipchecker_with_outdated_requirement_on_pip20_1(self): subprocess.call([sys.executable, '-m', 'pip', 'install', '-U', 'pip==20.1']) importlib.reload(pip)