From 69e00e5688bc316d4890607c2d66a457eb24337d Mon Sep 17 00:00:00 2001 From: jaimergp Date: Fri, 8 Nov 2024 18:04:43 +0100 Subject: [PATCH] add test --- tests/test_examples.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/test_examples.py b/tests/test_examples.py index 549cfd835..40e89899d 100644 --- a/tests/test_examples.py +++ b/tests/test_examples.py @@ -842,3 +842,21 @@ def test_virtual_specs_ok(tmp_path, request): check_subprocess=True, uninstall=True, ) + + +@pytest.mark.skipif(sys.platform.startswith("win"), reason="Unix only") +def test_virtual_specs_override(tmp_path, request, monkeypatch): + input_path = _example_path("virtual_specs_failed") + for installer, install_dir in create_installer(input_path, tmp_path): + if installer.name.endswith(".pkg"): + continue + monkeypatch.setenv("CONDA_OVERRIDE_GLIBC", "20") + monkeypatch.setenv("CONDA_OVERRIDE_OSX", "30") + _run_installer( + input_path, + installer, + install_dir, + request=request, + check_subprocess=True, + uninstall=True, + )