diff --git a/micromamba/tests/test_package.py b/micromamba/tests/test_package.py index 2a0d23bc67..fff710e20f 100644 --- a/micromamba/tests/test_package.py +++ b/micromamba/tests/test_package.py @@ -148,6 +148,11 @@ def test_extract_compress(cph_test_file: Path, tmp_path: Path): assert_sorted(names[: len(info_files)]) +# Only run this test if zstandard is available. +@pytest.mark.skipif( + not hasattr(cph.conda_fmt, "ZSTD_COMPRESS_LEVEL"), + reason="zstandard not available (required by conda_package_handling)", +) def test_transmute(cph_test_file: Path, tmp_path: Path): (tmp_path / "cph").mkdir(parents=True) (tmp_path / "mm").mkdir(parents=True)