From 0ef7da94a745e895773789b82dd5b81a50da254a Mon Sep 17 00:00:00 2001 From: aliciaaevans Date: Fri, 18 Oct 2024 14:58:49 -0400 Subject: [PATCH] missing jinja var now throws CondaBuildUserError --- test/test_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_utils.py b/test/test_utils.py index 4ec044dd7f..5c90751e8f 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -14,7 +14,7 @@ from pathlib import Path from textwrap import dedent -from conda_build import api, metadata +from conda_build import api, metadata, exceptions from bioconda_utils import __version__ from bioconda_utils import utils @@ -652,7 +652,7 @@ def test_rendering_sandboxing(): assert ("'GITHUB_TOKEN' is undefined" in str(excinfo.value.stdout)) else: # recipe for "one" should fail because GITHUB_TOKEN is not a jinja var. - with pytest.raises(SystemExit) as excinfo: + with pytest.raises(exceptions.CondaBuildUserError) as excinfo: pkg_paths = utils.built_package_paths(r.recipe_dirs['one']) build.build( recipe=r.recipe_dirs['one'],