test: use raw regex for excluded_services match

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
mrinal 2026-10-11 03:05:47 +00:00
parent 3c9df1b445
commit 5dc107a2f5

View file

@ -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)