The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(child-env): keep the home vars in the Windows mixed-case PATH test
kshitijk4poorb86a0af82582
diff --git a/tests/tools/test_local_env_blocklist.py b/tests/tools/test_local_env_blocklist.pyindex dbc2173fad7..8b782d207ed 100644--- a/tests/tools/test_local_env_blocklist.py+++ b/tests/tools/test_local_env_blocklist.py@@ -1572,7 +1572,10 @@ class TestSanePathIncludesHomebrew:"""from tools.environments import local as local_modfrom tools.environments.local import _make_run_env- windows_env = {"Path": r"C:\Windows\System32;C:\Program Files\Git\bin"}+ # Keep the real home vars: the adapter-secret lookup resolves the profile home.+ windows_env = {"Path": r"C:\Windows\System32;C:\Program Files\Git\bin",+ **{k: os.environ[k] for k in ("USERPROFILE", "HOMEDRIVE", "HOMEPATH", "HERMES_HOME")+ if k in os.environ}}monkeypatch.setattr(local_mod, "_git_bash_bin_dirs", lambda: [])with patch.object(local_mod.os, "environ", windows_env):result = _make_run_env({})