The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test: guard os.geteuid() for Windows in the ACP launcher tests
emozilla0605279b358f
diff --git a/tests/hermes_cli/test_ensure_acp_launcher.py b/tests/hermes_cli/test_ensure_acp_launcher.pyindex 587e726fad2..fac777858d4 100644--- a/tests/hermes_cli/test_ensure_acp_launcher.py+++ b/tests/hermes_cli/test_ensure_acp_launcher.py@@ -52,6 +52,13 @@ def test_does_not_follow_symlink_into_venv(fake_home, tmp_path):def test_unwritable_bin_dir_is_skipped(fake_home):(fake_home / "hermes").write_text("#!/bin/sh\n", encoding="utf-8")+ if not hasattr(os, "geteuid"):+ # Windows: no geteuid, and chmod can't make a directory unwritable+ # anyway. _ensure_acp_launcher is an explicit no-op there, so the+ # assertion below still holds — vacuously.+ _ensure_acp_launcher()+ assert not (fake_home / "hermes-acp").exists()+ returnif os.geteuid() == 0:pytest.skip("root ignores directory write permissions")fake_home.chmod(0o555)