From c08003bc59b1b40694ddf842a46efdaafcf0a322 Mon Sep 17 00:00:00 2001 From: weichen Date: Wed, 14 Oct 2026 10:57:36 +0000 Subject: [PATCH] Preserve isolated Python tools in the DOCX lint test Why: The test replaced PYTHONPATH with the house-style source path, hiding the fixed Python wheels installed inside the candidate sandbox. Evidence: Isolated Backend TestLintErrorContinues replay passed with locked wheel acquisition and no host site-packages; SELF receipt /tmp/dependency-task3-backend-lint-probe-20261014-01a1345f.json. Impact: Test environment composition only; production runtime behavior is unchanged. Refs: Backend PR #196; Dev PR #537; Documents plan 5099e12 --- internal/runtime/llm_verify_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/runtime/llm_verify_test.go b/internal/runtime/llm_verify_test.go index 370f475..f339065 100644 --- a/internal/runtime/llm_verify_test.go +++ b/internal/runtime/llm_verify_test.go @@ -100,6 +100,9 @@ func TestLintErrorContinues(t *testing.T) { if err != nil { t.Fatal(err) } + if existing := os.Getenv("PYTHONPATH"); existing != "" { + abs += string(os.PathListSeparator) + existing + } t.Setenv("PYTHONPATH", abs) docx := badDocx(t) turns := padTurns(