FrankYang0529 commented on code in PR #70492:
URL: https://github.com/apache/airflow/pull/70492#discussion_r3662997912


##########
providers/standard/tests/unit/standard/triggers/test_temporal.py:
##########
@@ -23,11 +23,13 @@
 import pendulum
 import pytest
 
+from airflow.providers.common.compat.sdk import timezone
 from airflow.providers.standard.triggers.temporal import DateTimeTrigger, 
TimeDeltaTrigger
 from airflow.triggers.base import TriggerEvent
-from airflow.utils import timezone
 from airflow.utils.state import TaskInstanceState
-from airflow.utils.timezone import utcnow
+
+# Bound at import time so tests patching ``temporal.timezone.utcnow`` still 
read a real clock here.
+utcnow = timezone.utcnow

Review Comment:
   I tried it, but it shows `ModuleNotFoundError: No module named 
'airflow.providers.common.compat.sdk.timezone'; 
'airflow.providers.common.compat.sdk' is not a package`. 



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