From 49cb3869dcd73862d1ea55dcb037778c6efe60b5 Mon Sep 17 00:00:00 2001 From: svlandeg Date: Tue, 17 Mar 2026 15:39:40 +0100 Subject: [PATCH] more generic deprecation warning --- tests/test_jsonable_encoder.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/test_jsonable_encoder.py b/tests/test_jsonable_encoder.py index ec449f5b68..01a7b6f35e 100644 --- a/tests/test_jsonable_encoder.py +++ b/tests/test_jsonable_encoder.py @@ -313,15 +313,11 @@ def test_encode_pydantic_undefined(): assert jsonable_encoder(data) == {"value": None} +@pytest.mark.filterwarnings("ignore::DeprecationWarning") @pytest.mark.parametrize( "module_path", [ - pytest.param( - "pydantic.color", - marks=pytest.mark.filterwarnings( - "ignore::pydantic.warnings.PydanticDeprecatedSince20" - ), - ), + pytest.param("pydantic.color"), pytest.param("pydantic_extra_types.color"), ], )