From fe24bcb83ed3edec0010cf00858ddf87dd4d44ad Mon Sep 17 00:00:00 2001 From: Yoggy <280342032+yoggydev@users.noreply.github.com> Date: Mon, 24 Aug 2026 10:35:27 +0900 Subject: [PATCH] Add error message match for OSError in test test(cli): pin the message the handle-release test expects --- tests/test_litellm/proxy/client/cli/autoroute/test_process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_litellm/proxy/client/cli/autoroute/test_process.py b/tests/test_litellm/proxy/client/cli/autoroute/test_process.py index 5451464b74e..1b8c32589ea 100644 --- a/tests/test_litellm/proxy/client/cli/autoroute/test_process.py +++ b/tests/test_litellm/proxy/client/cli/autoroute/test_process.py @@ -253,7 +253,7 @@ class TestWindowsPidExists: last_error=Mock(return_value=0), ) - with pytest.raises(OSError): + with pytest.raises(OSError, match="Invalid argument"): _windows_pid_exists(4321, api) close_handle.assert_called_once_with(99)