From 8087763ac600c75ef5e13dc17af2d219d12e8c6d Mon Sep 17 00:00:00 2001 From: Bartek Sokorski Date: Sun, 3 Mar 2024 01:40:04 +0100 Subject: [PATCH] Fix test producing .egg-info artifact --- tests/installation/test_chef.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/installation/test_chef.py b/tests/installation/test_chef.py index ba2b9eff9cf..30c5c380550 100644 --- a/tests/installation/test_chef.py +++ b/tests/installation/test_chef.py @@ -206,8 +206,9 @@ def __get__( chef = Chef( artifact_cache, EnvManager.get_system_env(), Factory.create_pool(config) ) - archive = fixture_dir("project_with_setup_calls_script").resolve() - + archive = shutil.copytree( + fixture_dir("project_with_setup_calls_script").resolve(), tmp_path / "project" + ) wheel = chef.prepare(archive) assert wheel.name == "project_with_setup_calls_script-0.1.2-py3-none-any.whl"