Skip to content

Commit

Permalink
Use different installer name to avoid conflicting artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoesters committed Sep 19, 2024
1 parent 614bfde commit 79fe31f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ def test_virtual_specs_ok(tmp_path, request):

@pytest.mark.xfail(
CONDA_EXE == "conda-standalone" and Version(CONDA_EXE_VERSION) < Version("24.9.0"),
reason="Global .condarc breaks installation",
reason="Pre-existing .condarc breaks installation",
)
def test_ignore_condarc_files(tmp_path, monkeypatch, request):
# Create a bogus .condarc file that would result in errors if read.
Expand All @@ -848,7 +848,13 @@ def test_ignore_condarc_files(tmp_path, monkeypatch, request):
condarc = tmp_path / "conda" / ".condarc"
condarc.parent.mkdir(parents=True, exist_ok=True)
condarc.write_text("safety_checks:\n - very safe\n")
input_path = _example_path("customize_controls")
recipe_path = _example_path("customize_controls")
input_path = tmp_path / "input"
shutil.copytree(str(recipe_path), str(input_path))
# Rewrite installer name to avoid duplicate artifacts
construct_yaml = input_path / "construct.yaml"
content = construct_yaml.read_text()
construct_yaml.write_text(content.replace("name: NoCondaOptions", "name: NoCondaRC"))
for installer, install_dir in create_installer(input_path, tmp_path):
proc = _run_installer(
input_path,
Expand Down

0 comments on commit 79fe31f

Please sign in to comment.