Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions tests/architecture/test_semantic_development_probe.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from __future__ import annotations

import os
from pathlib import Path
import subprocess
import sys
Expand Down Expand Up @@ -344,6 +345,13 @@ def probe_cli(repository: Path) -> Path:


def _run_probe_cli(repository: Path) -> subprocess.CompletedProcess[str]:
# pytest-cov injects subprocess startup variables. The synthetic checkout
# must not contribute temporary source paths to real CI.
env = {
key: value
for key, value in os.environ.items()
if not key.startswith(("PYTEST", "COVERAGE", "COV_CORE"))
}
return subprocess.run(
[
sys.executable,
Expand All @@ -352,6 +360,7 @@ def _run_probe_cli(repository: Path) -> subprocess.CompletedProcess[str]:
"HEAD",
],
cwd=repository,
env=env,
capture_output=True,
text=True,
check=False,
Expand Down
Loading