From 129b9f9d33afad50f470708ee5a515d8150b0d40 Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Wed, 22 Jul 2026 21:22:29 -0700 Subject: [PATCH] test: make interrupt-pool double's entries callable Follow-up to the #58738 salvage: the pre-exhausted check now enumerates pool.entries() to find the failing key, so the MagicMock pool double must expose entries as a callable, not a bare list. --- tests/run_agent/test_credential_pool_interrupt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/run_agent/test_credential_pool_interrupt.py b/tests/run_agent/test_credential_pool_interrupt.py index 19e68e1c61c24..6cef32a144a73 100644 --- a/tests/run_agent/test_credential_pool_interrupt.py +++ b/tests/run_agent/test_credential_pool_interrupt.py @@ -25,7 +25,7 @@ def _make_entry(idx, **overrides): def _make_pool(entries): pool = MagicMock() - pool.entries = entries + pool.entries = MagicMock(return_value=entries) pool.current.return_value = entries[0] # Must be set explicitly — MagicMock.provider returns a truthy # child mock, which would trigger the provider-mismatch guard.