From 69b7224aef7e64e7a38eb624d1075c8e141335d7 Mon Sep 17 00:00:00 2001 From: Yujong Lee Date: Mon, 21 Sep 2026 23:56:40 +0000 Subject: [PATCH] test(python-bridge): initialize the interpreter in the embedder seed test Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- litellm-rust/crates/python-bridge/src/cache/embedder.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/litellm-rust/crates/python-bridge/src/cache/embedder.rs b/litellm-rust/crates/python-bridge/src/cache/embedder.rs index 10ccf396510..9398e5a862b 100644 --- a/litellm-rust/crates/python-bridge/src/cache/embedder.rs +++ b/litellm-rust/crates/python-bridge/src/cache/embedder.rs @@ -140,10 +140,8 @@ mod tests { #[tokio::test] async fn async_embed_returns_the_seeded_vector_or_unavailable() { - let object = Python::attach(|py| { - Python::initialize(); - py.None() - }); + Python::initialize(); + let object = Python::attach(|py| py.None()); let embedder = PythonEmbedder::new(object); let scoped_embedder = embedder.clone(); let scoped = with_prepared_embedding(Ok(vec![0.25]), async move {