Skip to content

Commit

Permalink
fix: attempt to fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil committed Dec 27, 2024
1 parent de4c6cc commit 1f0658f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/fixtures/integration.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import shutil
import sys
from collections.abc import Generator
from pathlib import Path

Expand All @@ -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

Expand Down

0 comments on commit 1f0658f

Please sign in to comment.