The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(workers): trampoline teardown kills the real interpreter before its launcher
teknium101c2d5002be1
diff --git a/tests/gateway/test_managed_worker_trampoline.py b/tests/gateway/test_managed_worker_trampoline.pyindex e19920aa2a5..785f8386e84 100644--- a/tests/gateway/test_managed_worker_trampoline.py+++ b/tests/gateway/test_managed_worker_trampoline.py@@ -65,13 +65,15 @@ def test_owner_binds_reservation_to_verified_descendant_of_the_handle_only(tmp_passert (scope['pid'], scope['birth']) == (real, psutil.Process(real).create_time())assert scope['pid'] != launcher.pidfinally:+ # The real interpreter first, while it is still the launcher's child: killing the launcher+ # first reparents it outside the test subtree, where the conftest kill guard refuses it.+ if psutil.pid_exists(real):+ psutil.Process(real).kill()for proc in (launcher, stranger):proc.stdin.close()if proc.poll() is None:proc.kill()proc.wait(timeout=10)- if psutil.pid_exists(real):- psutil.Process(real).kill()@pytest.mark.linux_only