diff --git a/tests/unit/test_ingest_hevc_transcode_task.py b/tests/unit/test_ingest_hevc_transcode_task.py index 8627a8a17..cbcb8f13a 100644 --- a/tests/unit/test_ingest_hevc_transcode_task.py +++ b/tests/unit/test_ingest_hevc_transcode_task.py @@ -51,7 +51,7 @@ from worker_app.tasks import ingest as ingest_mod # noqa: E402 # ── 恢复 worker_app mock,避免泄漏到其他测试文件 ── for _key in list(sys.modules.keys()): - if _key not in _SAVED_MODULES_KEYS: + if _key not in _SAVED_MODULES_KEYS and not _key.startswith("video_processing"): del sys.modules[_key] del _SAVED_MODULES_KEYS