Skip to content

Commit

Permalink
Add comment for test concurrency issue workaround
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Bargull <[email protected]>
  • Loading branch information
mbargull committed Nov 20, 2023
1 parent 77d5c92 commit 059fa6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_api_build_conda_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ def test_conda_pkg_format(
monkeypatch.setenv("CONDA_TEST_VAR", "conda_test")
monkeypatch.setenv("CONDA_TEST_VAR_2", "conda_test_2")

# Recipe "entry_points" is used in other test -> add test-specific variant
# (change build hash) to avoid clashes in package cache from other tests.
variants = {"pytest_name": [request.node.name]}
(output_file,) = api.get_output_file_paths(
recipe, config=testing_config, variants=variants
Expand Down
2 changes: 2 additions & 0 deletions tests/test_api_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ def test_convert_platform_to_others(base_platform, package):
)
def test_convert_from_unix_to_win_creates_entry_points(testing_config, request):
recipe_dir = os.path.join(metadata_dir, "entry_points")
# Recipe "entry_points" is used in other test -> add test-specific variant
# (change build hash) to avoid clashes in package cache from other tests.
variants = {"pytest_name": [request.node.name]}
fn = api.build(recipe_dir, config=testing_config, variants=variants)[0]
for platform in ["win-64", "win-32"]:
Expand Down

0 comments on commit 059fa6b

Please sign in to comment.