Skip to content

Commit

Permalink
Fix compatibility with pip 22.2+
Browse files Browse the repository at this point in the history
  • Loading branch information
felixonmars committed Aug 31, 2022
1 parent 81267a6 commit 457cd5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_instances.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def test_resolution(tmpdir, PipCommand):
"ignore_requires_python": selection_prefs.ignore_requires_python,
}
)
if parse_version(pip_version) >= parse_version("22.0"):
if parse_version("22.2") > parse_version(pip_version) >= parse_version("22.0"):
finder_args["use_deprecated_html5lib"] = False
else:
finder_args = {
Expand Down Expand Up @@ -428,7 +428,7 @@ def test_wheelbuilder(tmpdir, PipCommand):
"ignore_requires_python": selection_prefs.ignore_requires_python,
}
)
if parse_version(pip_version) >= parse_version("22.0"):
if parse_version("22.2") > parse_version(pip_version) >= parse_version("22.0"):
finder_args["use_deprecated_html5lib"] = False
else:
finder_args = {
Expand Down

0 comments on commit 457cd5e

Please sign in to comment.