From b2c979c0a7aa4f5c72c6f8c3ccc626b19d3506fb Mon Sep 17 00:00:00 2001 From: Anna Date: Sun, 3 Nov 2024 19:42:55 +0500 Subject: [PATCH] Fix `test_protected_namespace_defaults` with -Wdefault (#462) --- tests/test_settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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_"' ):