The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
test: run fork-guard contract subprocesses with python -I
Yujong Lee1bcd8d704fe4
diff --git a/tests/test_litellm_rust/test_fork_guard.py b/tests/test_litellm_rust/test_fork_guard.pyindex b92095cbaaa..c15555ff535 100644--- a/tests/test_litellm_rust/test_fork_guard.py+++ b/tests/test_litellm_rust/test_fork_guard.py@@ -54,7 +54,7 @@ def test_compiled_extension_forbids_the_master_and_frees_its_workers() -> None:env = {**os.environ, "OBJC_DISABLE_INITIALIZE_FORK_SAFETY": "YES"}result = subprocess.run(- [sys.executable, "-c", _NATIVE_CONTRACT], capture_output=True, text=True, timeout=60, env=env+ [sys.executable, "-I", "-c", _NATIVE_CONTRACT], capture_output=True, text=True, timeout=60, env=env)assert result.returncode == 0, result.stderr@@ -144,7 +144,7 @@ def test_sdk_call_in_a_child_forked_after_native_use_raises_instead_of_hanging()}result = subprocess.run(- [sys.executable, "-c", _SDK_CONTRACT], capture_output=True, text=True, timeout=120, env=env+ [sys.executable, "-I", "-c", _SDK_CONTRACT], capture_output=True, text=True, timeout=120, env=env)assert result.returncode == 0, result.stderr