From 6c4fb53102de016588061c3eff300ff1e563ae14 Mon Sep 17 00:00:00 2001 From: Sandrine Pataut Date: Thu, 9 Jan 2025 19:28:40 +0100 Subject: [PATCH] fix a test --- micromamba/tests/test_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/micromamba/tests/test_list.py b/micromamba/tests/test_list.py index db0e8d7254..2ca25d9ccf 100644 --- a/micromamba/tests/test_list.py +++ b/micromamba/tests/test_list.py @@ -52,7 +52,7 @@ def test_list_no_json(tmp_home, tmp_root_prefix, tmp_env_name, tmp_xtensor_env, assert "xtensor" in res assert "xtl" in res - assert len(res.split("\n")) - 5 == res.count("conda-forge") + assert len(res[res.rindex("\u2500"):].split("\n")) - 2 == res.count("conda-forge") if reverse_flag == "--reverse": assert res.find("xtensor") > res.find("xtl")