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)