fix(tests): wrap pytest.raises match in re.escape to satisfy RUF043

This commit is contained in:
onatozmenn 2026-09-14 00:30:11 +03:00
parent 0764a0a923
commit 14d81858db
No known key found for this signature in database

View file

@ -1,3 +1,5 @@
import re
import pytest
import litellm
@ -67,7 +69,7 @@ def test_azure_config_uses_azure_capability_map_for_effort() -> None:
the OpenAI lookup would wrongly reject an effort Azure supports.
"""
openai_config = OpenAIResponsesAPIConfig()
with pytest.raises(litellm.UnsupportedParamsError, match="reasoning.effort=minimal"):
with pytest.raises(litellm.UnsupportedParamsError, match=re.escape("reasoning.effort=minimal")):
openai_config.map_openai_params(
response_api_optional_params={"reasoning": {"effort": "minimal"}},
model="gpt-5.4",