uranusjr commented on code in PR #37927: URL: https://github.com/apache/airflow/pull/37927#discussion_r1513970589
########## tests/jobs/test_triggerer_job.py: ########## @@ -51,6 +52,24 @@ pytestmark = pytest.mark.db_test [email protected](autouse=True) +def disable_console_handler(): + """ + Prevent console handler from getting bound to the trigger_job_runner when setup_queue_listener is called during tests + """ + + class QueueListener_(logging.handlers.QueueListener): Review Comment: Does this class need to be defined in the function scope? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
