Skip to content

Commit 9ac6e48

Browse files
committed
dont pollute fixtures in unit tests
1 parent 6a5c544 commit 9ac6e48

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/utils/test_isolated_build.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import annotations
22

3+
import shutil
34
import sys
45

56
from pathlib import Path
@@ -85,7 +86,8 @@ def test_isolated_env_install_failure(
8586
def test_isolated_builder_outside_poetry_project_context(
8687
tmp_working_directory: Path, fixture_dir: FixtureDirGetter
8788
) -> None:
88-
source = fixture_dir("project_with_setup")
89+
source = tmp_working_directory / "source"
90+
shutil.copytree(fixture_dir("project_with_setup"), source)
8991
destination = tmp_working_directory / "dist"
9092

9193
try:

0 commit comments

Comments
 (0)