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.
This commit is contained in:
mateo-berri 2026-09-09 13:39:15 -07:00
parent a0f2fbbec2
commit 422e7e68f2

View file

@ -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("