This is an automated email from the ASF dual-hosted git repository.

honahx pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-python.git


The following commit(s) were added to refs/heads/main by this push:
     new c9b6c1b9 Tests: Fix unstable test_timestamp_to_date due to timezone 
(#612)
c9b6c1b9 is described below

commit c9b6c1b9921b2378e13094c232425909544109b7
Author: frankliee <[email protected]>
AuthorDate: Thu Apr 18 15:31:24 2024 +0800

    Tests: Fix unstable test_timestamp_to_date due to timezone (#612)
---
 tests/expressions/test_literals.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/expressions/test_literals.py 
b/tests/expressions/test_literals.py
index c974fc8b..95da250a 100644
--- a/tests/expressions/test_literals.py
+++ b/tests/expressions/test_literals.py
@@ -275,7 +275,7 @@ def test_decimal_to_decimal_conversion() -> None:
 
 
 def test_timestamp_to_date() -> None:
-    epoch_lit = 
TimestampLiteral(int(datetime.datetime.fromisoformat("1970-01-01T01:23:45.678").timestamp()
 * 1_000_000))
+    epoch_lit = 
TimestampLiteral(int(datetime.datetime.fromisoformat("1970-01-01T00:00:00.000000+00:00").timestamp()
 * 1_000_000))
     date_lit = epoch_lit.to(DateType())
 
     assert date_lit.value == 0

Reply via email to