diff --git a/tests/fixtures/integration.py b/tests/fixtures/integration.py index f2008716..213abc40 100644 --- a/tests/fixtures/integration.py +++ b/tests/fixtures/integration.py @@ -1,4 +1,5 @@ import shutil +import sys from collections.abc import Generator from pathlib import Path @@ -12,7 +13,12 @@ def __init__(self, temporary_path: Path) -> None: def create_venv(self) -> tuple[Path, Path]: """Create a simulated virtual environment.""" venv_path = self.temporary_path / "venv" - site_packages_path = venv_path / "lib" / "python3.9" / "site-packages" + + if sys.platform == "win32": + site_packages_path = venv_path / "Lib" / "site-packages" + else: + site_packages_path = venv_path / "lib" / "python3.9" / "site-packages" + site_packages_path.mkdir(parents=True) return venv_path, site_packages_path