hy144328 commented on code in PR #39782:
URL: https://github.com/apache/superset/pull/39782#discussion_r3243604786
##########
tests/unit_tests/models/core_test.py:
##########
@@ -199,15 +199,20 @@ class OldDBEngineSpec(BaseEngineSpec):
@pytest.mark.parametrize(
"dttm,col,database,result",
+ # Make sure that dttm and result share the same timezone awareness.
+ # Either dttm and result are both timezone-naive.
+ # Or dttm and result are both timezone-aware, e.g. dttm is a datetime
object with
+ # non-null tzinfo and result is a UNIX timestamp with epoch (sub-)seconds
since
+ # 1970-01-01 00:00:00 UTC.
[
(
- datetime(2023, 1, 1, 1, 23, 45, 600000),
+ datetime(2023, 1, 1, 1, 23, 45, 600000, timezone.utc),
Review Comment:
Outdated.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]