Skip to content

Commit

Permalink
Skip test_transmute when possible
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 435d8e2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions micromamba/tests/test_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 435d8e2

Please sign in to comment.