From a3230ba6ee943bd225ac7bdfa11dee7b756cf51e Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Thu, 29 Jun 2023 17:49:17 +0200 Subject: [PATCH] GH-36349: [Python][CI] Avoid using 'build/etc/localtime' timezone in hypothesis tests --- python/pyarrow/tests/test_pandas.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/pyarrow/tests/test_pandas.py b/python/pyarrow/tests/test_pandas.py index ddd6e9ba3646..371a29470dab 100644 --- a/python/pyarrow/tests/test_pandas.py +++ b/python/pyarrow/tests/test_pandas.py @@ -1069,6 +1069,8 @@ def test_python_datetime_with_pytz_tzinfo(self): @h.given(st.none() | past.timezones) @h.settings(deadline=None) def test_python_datetime_with_pytz_timezone(self, tz): + if str(tz) == "build/etc/localtime": + pytest.skip("Localtime timezone not supported") values = [datetime(2018, 1, 1, 12, 23, 45, tzinfo=tz)] df = pd.DataFrame({'datetime': values}) _check_pandas_roundtrip(df, check_dtype=False)