From 141b49b74c5a56883759c61b1186c57eb3d37fe3 Mon Sep 17 00:00:00 2001 From: ai-ag2026 Date: Wed, 8 Jul 2026 23:04:43 +0200 Subject: [PATCH] test(bg): fix drain-loop backoff test import so it actually collects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The regression test used a bare `from _wakeup_helpers import install_fake_registry`, which raises ModuleNotFoundError under the repo test runner (rootdir = repo root, tests is a package). pytest treats that as a COLLECTION error for the file, not a failure — so the whole suite stayed green while this file's tests silently never ran, leaving the backoff fix with zero effective coverage. Use the package-qualified `from tests._wakeup_helpers import install_fake_registry`, matching the four sibling bg_task_complete suites. Confirmed the import now resolves from the repo root (the bare form fails). Co-Authored-By: Claude Opus 4.8 (1M context) --- tests/test_bg_task_drain_loop_backoff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_bg_task_drain_loop_backoff.py b/tests/test_bg_task_drain_loop_backoff.py index f8f927b8..38341424 100644 --- a/tests/test_bg_task_drain_loop_backoff.py +++ b/tests/test_bg_task_drain_loop_backoff.py @@ -18,7 +18,7 @@ from __future__ import annotations import queue import threading -from _wakeup_helpers import install_fake_registry +from tests._wakeup_helpers import install_fake_registry class _CountingStop: