From 49593518487e0ccca67fa7b44fe61b51916d5e9b Mon Sep 17 00:00:00 2001 From: gvisco Date: Tue, 2 Jun 2026 20:08:59 +0200 Subject: [PATCH] test(proxy): isolate test_get_loop_type from env with patch.dict clear=True --- tests/test_litellm/proxy/test_proxy_cli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_litellm/proxy/test_proxy_cli.py b/tests/test_litellm/proxy/test_proxy_cli.py index 7988628e5a9..d3c22e3de53 100644 --- a/tests/test_litellm/proxy/test_proxy_cli.py +++ b/tests/test_litellm/proxy/test_proxy_cli.py @@ -353,6 +353,7 @@ class TestProxyInitializationHelpers: # Execute and Assert assert ProxyInitializationHelpers._is_port_in_use(8000) is False + @patch.dict(os.environ, {}, clear=True) def test_get_loop_type(self): with patch("sys.platform", "win32"): assert ProxyInitializationHelpers._get_loop_type() is None