Skip to content

Commit

Permalink
Backport #3319
Browse files Browse the repository at this point in the history
  • Loading branch information
Hind-M committed Jul 16, 2024
1 parent 4f26925 commit 8b56a73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions micromamba/tests/test_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ def test_channel_alias(self, alias, existing_cache):
dry_run_tests is DryRun.ULTRA_DRY, reason="Running only ultra-dry tests"
)
def test_no_python_pinning(self, existing_cache):
install("python=3.9", no_dry_run=True)
install("python=3.9.19", no_dry_run=True)
res = install("setuptools=28.4.0", "--no-py-pin", "--json")

keys = {"success", "prefix", "actions", "dry_run"}
Expand All @@ -458,10 +458,10 @@ def test_no_python_pinning(self, existing_cache):
assert {"python"}.issubset(unlink_packages)

py_pkg = [pkg for pkg in res["actions"]["LINK"] if pkg["name"] == "python"][0]
assert not py_pkg["version"].startswith("3.9")
assert py_pkg["version"] != ("3.9.19")

py_pkg = [pkg for pkg in res["actions"]["UNLINK"] if pkg["name"] == "python"][0]
assert py_pkg["version"].startswith("3.9")
assert py_pkg["version"] == ("3.9.19")

@pytest.mark.skipif(
dry_run_tests is DryRun.ULTRA_DRY, reason="Running only ultra-dry tests"
Expand Down

0 comments on commit 8b56a73

Please sign in to comment.