Skip to content

Commit

Permalink
Do not run pip 20.1 test on python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
foarsitter committed Nov 21, 2023
1 parent 35f8508 commit 60b982f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/management/commands/test_pipchecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 60b982f

Please sign in to comment.