uranusjr commented on code in PR #39989: URL: https://github.com/apache/airflow/pull/39989#discussion_r1623753815
########## tests/models/test_dagbag.py: ########## @@ -765,9 +765,13 @@ def subdag_1(): return dag - test_dag = nested_subdag_cycle() - # coherence check to make sure DAG.subdag is still functioning properly - assert len(test_dag.subdags) == 6 + with pytest.warns( + RemovedInAirflow3Warning, + match="This class is deprecated. Please use `airflow.utils.task_group.TaskGroup`.", + ): + test_dag = nested_subdag_cycle() + # coherence check to make sure DAG.subdag is still functioning properly + assert len(test_dag.subdags) == 6 Review Comment: Does this line need to be inside the context block? -- 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: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org