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.
This commit is contained in:
Teknium 2026-07-22 21:22:29 -07:00
parent a9613d2e57
commit 129b9f9d33

View file

@ -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.