def test_1_9_config(self): from airflow.logging_config import configure_logging conf.set('core', 'task_log_reader', 'file.task') try: with self.assertWarnsRegex(DeprecationWarning, r'file.task'): configure_logging() self.assertEqual(conf.get('core', 'task_log_reader'), 'task') finally: conf.remove_option('core', 'task_log_reader', remove_default=False)