Skip to content

Commit b2c979c

Browse files
authored
Fix test_protected_namespace_defaults with -Wdefault (#462)
1 parent 2441670 commit b2c979c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2175,7 +2175,7 @@ class Model(BaseSettings):
21752175
model_prefixed_field: str
21762176

21772177
# pydantic-settings default
2178-
with pytest.raises(
2178+
with pytest.warns(
21792179
UserWarning, match='Field "settings_prefixed_field" in Model1 has conflict with protected namespace "settings_"'
21802180
):
21812181

0 commit comments

Comments
 (0)