Fokko commented on code in PR #4220:
URL: https://github.com/apache/iceberg-python/pull/4220#discussion_r4769517321


##########
tests/table/test_expire_snapshots.py:
##########
@@ -175,6 +176,34 @@ def 
test_expire_snapshots_by_timestamp_skips_protected(table_v2: Table) -> None:
     assert remove_update.snapshot_ids == []
 
 
+def 
test_expire_snapshots_older_than_reads_naive_datetime_as_local_time(table_v2: 
Table, monkeypatch: pytest.MonkeyPatch) -> None:
+    """Test that older_than reads a naive datetime, as datetime.now() returns 
it, in the local time zone."""
+    if not hasattr(time, "tzset"):

Review Comment:
   Nit: How about using `skipif`, so the condition is visible on the test 
itself?
   ```suggestion
   @pytest.mark.skipif(not hasattr(time, "tzset"), reason="time.tzset is not 
available on Windows")
   def 
test_expire_snapshots_older_than_reads_naive_datetime_as_local_time(table_v2: 
Table, monkeypatch: pytest.MonkeyPatch) -> None:
       """Test that older_than reads a naive datetime, as datetime.now() 
returns it, in the local time zone."""
   ```



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

Reply via email to