Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions micromamba/tests/test_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ def test_channel_alias(self, alias, existing_cache):
reason="Running only ultra-dry tests",
)
def test_no_python_pinning(self, existing_cache):
helpers.install("python=3.9", no_dry_run=True)
helpers.install("python=3.9.19", no_dry_run=True)
res = helpers.install("setuptools=63.4.3", "--no-py-pin", "--json")

keys = {"success", "prefix", "actions", "dry_run"}
Expand All @@ -445,10 +445,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(
helpers.dry_run_tests is helpers.DryRun.ULTRA_DRY,
Expand Down