From 824edd3681718e81e6bd69ed72c53f5fa7f884bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Fri, 26 Dec 2025 11:05:12 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Tweak=20test=20to=20filter=20warnin?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../test_tutorial004.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/test_tutorial/test_query_params_str_validations/test_tutorial004.py b/tests/test_tutorial/test_query_params_str_validations/test_tutorial004.py index ca1bd1af6..95efab2dc 100644 --- a/tests/test_tutorial/test_query_params_str_validations/test_tutorial004.py +++ b/tests/test_tutorial/test_query_params_str_validations/test_tutorial004.py @@ -13,7 +13,15 @@ from ...utils import needs_py310 pytest.param("tutorial004_py310", marks=needs_py310), pytest.param("tutorial004_an_py39"), pytest.param("tutorial004_an_py310", marks=needs_py310), - pytest.param("tutorial004_regex_an_py310", marks=needs_py310), + pytest.param( + "tutorial004_regex_an_py310", + marks=( + needs_py310, + pytest.mark.filterwarnings( + "ignore:`regex` has been deprecated, please use `pattern` instead:DeprecationWarning" + ), + ), + ), ], ) def get_client(request: pytest.FixtureRequest):