amoghrajesh commented on code in PR #56965:
URL: https://github.com/apache/airflow/pull/56965#discussion_r2451623203


##########
providers/standard/tests/unit/standard/operators/test_trigger_dagrun.py:
##########
@@ -771,9 +783,5 @@ def test_trigger_dagrun_with_fail_when_dag_is_paused(self, 
dag_maker, session):
                 fail_when_dag_is_paused=True,
             )
         dag_maker.create_dagrun()
-        if AIRFLOW_V_3_0_PLUS:
-            error = DagIsPaused
-        else:
-            error = AirflowException
-        with pytest.raises(error, match=f"^Dag {TRIGGERED_DAG_ID} is paused$"):

Review Comment:
   Nice, i absolutely do not love seeing such things!



-- 
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]

Reply via email to