Skip to content

Commit

Permalink
Skip test_transmute when necessary
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Jerphanion <[email protected]>
  • Loading branch information
jjerphan committed Nov 18, 2024
1 parent 325eae5 commit 11efe16
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions micromamba/tests/test_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import zipfile
from pathlib import Path

import conda_package_handling.conda_fmt
import pytest
import zstandard
from conda_package_handling import api as cph
Expand Down Expand Up @@ -148,6 +149,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(conda_package_handling.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)
Expand Down

0 comments on commit 11efe16

Please sign in to comment.