From 5dc107a2f53919b9d7deb54a572bc9e3eb4e782f Mon Sep 17 00:00:00 2001 From: mrinal Date: Sun, 11 Oct 2026 03:05:47 +0000 Subject: [PATCH] test: use raw regex for excluded_services match Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- tests/unit/types/test_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/types/test_utils.py b/tests/unit/types/test_utils.py index 80a92f1eb89..32479c62372 100644 --- a/tests/unit/types/test_utils.py +++ b/tests/unit/types/test_utils.py @@ -6,7 +6,7 @@ from litellm.types.utils import CAPTURE_MESSAGE_CONTENT_VALUES, CaptureMessageCo @pytest.mark.parametrize("value", ["", " ", "auth", "none,redis", "redis,", ",postgres"]) def test_invalid_excluded_services_values_are_rejected(value: str) -> None: - with pytest.raises(ValueError, match="Invalid excluded_services.*none"): + with pytest.raises(ValueError, match=r"Invalid excluded_services.*none"): validate_excluded_services_value(value)