diff --git a/tests/test_settings.py b/tests/test_settings.py index 937047b..95a4b96 100644 --- a/tests/test_settings.py +++ b/tests/test_settings.py @@ -2175,7 +2175,7 @@ class Model(BaseSettings): model_prefixed_field: str # pydantic-settings default - with pytest.raises( + with pytest.warns( UserWarning, match='Field "settings_prefixed_field" in Model1 has conflict with protected namespace "settings_"' ):