Skip to content

Commit

Permalink
don't shadow own function name in api.test
Browse files Browse the repository at this point in the history
  • Loading branch information
dholth committed Aug 16, 2024
1 parent 9480525 commit be69f18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conda_build/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down

0 comments on commit be69f18

Please sign in to comment.