Lohith625 commented on code in PR #56924: URL: https://github.com/apache/airflow/pull/56924#discussion_r2631284154
########## providers/standard/tests/unit/standard/operators/test_trigger_dagrun.py: ########## @@ -42,7 +42,10 @@ from tests_common.test_utils.version_compat import AIRFLOW_V_3_0_PLUS, AIRFLOW_V_3_1_PLUS if AIRFLOW_V_3_0_PLUS: - from airflow.providers.common.compat.sdk import DagRunTriggerException + from airflow.exceptions import DagRunTriggerException Review Comment: Thanks for pointing this out. The change was intentional to reference the canonical core exception in Airflow 3. Since DagRunTriggerException is a core concept in AF3, importing it from airflow.exceptions in the unit test makes the expected behavior explicit and avoids relying on provider-level compatibility imports. That said, if keeping the compat import is preferred here for consistency, I’m happy to revert and adjust the test accordingly. -- 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]
