The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(update): footgun-clean parent/tail topology test
Teknium19c6a5731fea
diff --git a/tests/hermes_cli/test_source_completion_stamp.py b/tests/hermes_cli/test_source_completion_stamp.pyindex 619142567ed..e86b4412c03 100644--- a/tests/hermes_cli/test_source_completion_stamp.py+++ b/tests/hermes_cli/test_source_completion_stamp.py@@ -153,11 +153,11 @@ def test_completion_runs_under_a_parents_claim_without_releasing_it(tmp_path):)parent = ("import os, subprocess, sys, time\n"- f"open({str(marker)!r}, 'w', encoding='utf-8').write(f'{{os.getpid()}}\\n{{int(time.time())}}\\n')\n"+ f"open({str(marker)!r}, 'w', encoding='utf-8').write(f'{{os.getpid()}}\\n{{int(time.time())}}\\n')\n" # windows-footgun: ok — a write"sys.exit(subprocess.call([sys.executable, '-c', sys.argv[1]]))\n")- run = subprocess.run([sys.executable, "-c", parent, tail], capture_output=True, text=True,- encoding="utf-8", timeout=120)+ run = subprocess.run([sys.executable, "-c", parent, tail], capture_output=True, timeout=120,+ text=True, encoding="utf-8", errors="replace")assert run.returncode == 0 and run.stdout.strip().splitlines()[-1:] == ["true"], run.stdout + run.stderrassert marker.exists(), "the parent still owns its claim after our tail"