From be69f1815b08ed697f660f0e340675ae8b26e50f Mon Sep 17 00:00:00 2001 From: Daniel Holth Date: Fri, 16 Aug 2024 10:28:39 -0400 Subject: [PATCH] don't shadow own function name in api.test --- conda_build/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conda_build/api.py b/conda_build/api.py index eaea8f50b8..647915b747 100644 --- a/conda_build/api.py +++ b/conda_build/api.py @@ -230,7 +230,7 @@ def test( For a recipe folder, it renders the recipe enough to know what package to download, and obtains it from your currently configuured channels.""" - from .build import test + from .build import test as run_test if hasattr(recipedir_or_package_or_metadata, "config"): config = recipedir_or_package_or_metadata.config @@ -246,7 +246,7 @@ def test( # doesn't already have one. What this means is that if we're # running a test immediately after build, we use the one that the # build already provided - return test( + return run_test( recipedir_or_package_or_metadata, config=config, move_broken=move_broken,