Skip to content

Commit

Permalink
Adapt test_explicit_export_topologically_sorted
Browse files Browse the repository at this point in the history
As of pip 24.1.2 distribution on conda-forge,
pip does not depend on wheels at runtime:
https://github.com/conda-forge/pip-feedstock/pull/121/files#diff-f3725a55bf339595bf865fec73bda8ac99f283b0810c205442021f29c06eea9aR21-R25

Hence wheel index being 0 causing the bug.

Let's omit it entirely.

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
  • Loading branch information
jjerphan committed Jul 31, 2024
1 parent 208c5ee commit 03b9a14
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions micromamba/tests/test_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ def test_explicit_export_topologically_sorted(tmp_home, tmp_prefix):
indices = {
"libzlib": 0,
"python": 0,
"wheel": 0,
"pip": 0,
"jupyterlab": 0,
}
Expand All @@ -194,6 +193,5 @@ def test_explicit_export_topologically_sorted(tmp_home, tmp_prefix):
indices[pkg] = i

assert indices["libzlib"] < indices["python"]
assert indices["python"] < indices["wheel"]
assert indices["wheel"] < indices["pip"]
assert indices["python"] < indices["pip"]
assert indices["python"] < indices["jupyterlab"]

0 comments on commit 03b9a14

Please sign in to comment.