diff --git a/tests/test_litellm_rust/test_fork_guard.py b/tests/test_litellm_rust/test_fork_guard.py index 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