From 607682c33f81a31fd1458219957d559bb036e6e1 Mon Sep 17 00:00:00 2001 From: Utkarsh Sharma Date: Wed, 4 Dec 2024 19:04:46 +0530 Subject: [PATCH] Fix test_deprecated_options_with_new_section (#44647) (cherry picked from commit b4f4ba89dfc66ac9e7b44194af255ac031bf5a7a) --- tests/core/test_configuration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/core/test_configuration.py b/tests/core/test_configuration.py index b200d16baad8a..58e1e029af84d 100644 --- a/tests/core/test_configuration.py +++ b/tests/core/test_configuration.py @@ -974,7 +974,7 @@ def test_deprecated_options_with_new_section(self): with mock.patch.dict("os.environ", AIRFLOW__CORE__LOGGING_LEVEL="VALUE"): assert conf.get("logging", "logging_level") == "VALUE" - with pytest.warns(FutureWarning, match="Please update your `conf.get"): + with pytest.warns(DeprecationWarning, match=r"The logging_level option in \[core\]"): with mock.patch.dict("os.environ", AIRFLOW__CORE__LOGGING_LEVEL="VALUE"): assert conf.get("core", "logging_level") == "VALUE"