From 99c36b08345c6a279cef0a1422e352f55e41ec90 Mon Sep 17 00:00:00 2001 From: "duanjialing.777" Date: Thu, 1 Oct 2026 04:47:13 +0800 Subject: [PATCH] test(ci): isolate semantic probe subprocess coverage Signed-off-by: duanjialing.777 --- tests/architecture/test_semantic_development_probe.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/architecture/test_semantic_development_probe.py b/tests/architecture/test_semantic_development_probe.py index 94987444c4..f70bb846be 100644 --- a/tests/architecture/test_semantic_development_probe.py +++ b/tests/architecture/test_semantic_development_probe.py @@ -2,6 +2,7 @@ from __future__ import annotations +import os from pathlib import Path import subprocess import sys @@ -344,6 +345,11 @@ def probe_cli(repository: Path) -> Path: def _run_probe_cli(repository: Path) -> subprocess.CompletedProcess[str]: + environment = { + key: value + for key, value in os.environ.items() + if not key.startswith(("COVERAGE", "COV_CORE", "PYTEST")) + } return subprocess.run( [ sys.executable, @@ -355,6 +361,7 @@ def _run_probe_cli(repository: Path) -> subprocess.CompletedProcess[str]: capture_output=True, text=True, check=False, + env=environment, )