diff --git a/tests/core/test_configuration.py b/tests/core/test_configuration.py index b200d16baad8a..5d0c1cb312c53 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="Please update your `conf.get"): with mock.patch.dict("os.environ", AIRFLOW__CORE__LOGGING_LEVEL="VALUE"): assert conf.get("core", "logging_level") == "VALUE"