uranusjr commented on code in PR #34744: URL: https://github.com/apache/airflow/pull/34744#discussion_r1345456106
########## tests/models/test_dag.py: ########## @@ -94,10 +95,17 @@ from tests.test_utils.timetables import cron_timetable, delta_timetable TEST_DATE = datetime_tz(2015, 1, 2, 0, 0) - repo_root = Path(__file__).parents[2] +def convert_dt(tz: Timezone, dt, dst_rule): + """Converts a datetime in the current timezone""" + try: + return tz.convert(dt=dt, dst_rule=dst_rule) + except TypeError: # Pendulum 3 Timezone doesn't have dst_rule + return tz.convert(dt=dt) Review Comment: Maybe we should modify the tests instead to remove `dst_rule` entirely. Airflow doesn’t support 3.6 anymore. (And maybe have some tests checking the fold behaviour?) -- 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