From b6190f27235700b03052aafcb7f5ee5fa0f25d75 Mon Sep 17 00:00:00 2001 From: dangotbanned <125183946+dangotbanned@users.noreply.github.com> Date: Wed, 5 Jun 2024 11:23:59 +0100 Subject: [PATCH] test: Skip tests on Win that require a tz database See https://github.com/apache/arrow/pull/36996 --- tests/utils/test_utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/utils/test_utils.py b/tests/utils/test_utils.py index 76871e3b0..231eae91f 100644 --- a/tests/utils/test_utils.py +++ b/tests/utils/test_utils.py @@ -1,5 +1,6 @@ import io import json +import sys import warnings import numpy as np @@ -121,7 +122,10 @@ def test_sanitize_dataframe_arrow_columns(): @pytest.mark.skipif(pa is None, reason="pyarrow not installed") -def test_sanitize_pyarrow_table_columns(): +@pytest.mark.skipif( + sys.platform == "win32", reason="Timezone database is not installed on Windows" +) +def test_sanitize_pyarrow_table_columns() -> None: # create a dataframe with various types df = pd.DataFrame( {