From 422e7e68f2d33815f079f37fc747ed2e440c0196 Mon Sep 17 00:00:00 2001 From: mateo-berri <277851410+mateo-berri@users.noreply.github.com> Date: Wed, 9 Sep 2026 13:39:15 -0700 Subject: [PATCH] test(azure): import subprocess and sys inside the env var regression test The module import block now matches the merge base again, so the branch merges cleanly onto the default branch, which dropped the sys.path shim and its sys import. The subprocess test still needs both modules, so it imports them locally. --- tests/test_litellm/llms/azure/test_azure_common_utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_litellm/llms/azure/test_azure_common_utils.py b/tests/test_litellm/llms/azure/test_azure_common_utils.py index 33a766ed8d7..bd6cda7fe39 100644 --- a/tests/test_litellm/llms/azure/test_azure_common_utils.py +++ b/tests/test_litellm/llms/azure/test_azure_common_utils.py @@ -1,6 +1,5 @@ import json import os -import subprocess import sys import traceback from typing import Callable, Optional @@ -446,6 +445,9 @@ def test_initialize_honors_explicit_max_retries(setup_mocks, configured, expecte def test_default_max_retries_env_var_reaches_azure_sdk_client(): + import subprocess + import sys + code = ( "from litellm.llms.azure.common_utils import BaseAzureLLM\n" "client = BaseAzureLLM().get_azure_openai_client("