Skip to content

Commit f8a4fe8

Browse files
committed
fix: handle tzset on Windows safely
1 parent 6037c3c commit f8a4fe8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/integration/test_writes/test_writes.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,9 @@ def test_summaries_with_only_nulls(
870870
@pytest.mark.integration
871871
def test_duckdb_url_import(warehouse: Path, arrow_table_with_null: pa.Table) -> None:
872872
os.environ["TZ"] = "Etc/UTC"
873-
time.tzset()
873+
874+
if hasattr(time, "tzset"):
875+
time.tzset()
874876
tz = pytz.timezone(os.environ["TZ"])
875877

876878
catalog = SqlCatalog("test_sql_catalog", uri="sqlite:///:memory:", warehouse=f"/{warehouse}")

0 commit comments

Comments
 (0)