@@ -2797,10 +2797,6 @@ def _check_temporal_rounding(ts, values, unit):
27972797 np .testing .assert_array_equal (result , expected )
27982798
27992799
2800- # # TODO(GH-48743): Re-enable once GCC/Windows timezone issues are resolved
2801- # # https://github.com/apache/arrow/issues/48743
2802- # @pytest.mark.skipif(sys.platform == "win32",
2803- # reason="Skipping temporal rounding tests on GCC/Windows")
28042800@pytest .mark .timezone_data
28052801@pytest .mark .parametrize ('unit' , ("nanosecond" , "microsecond" , "millisecond" ,
28062802 "second" , "minute" , "hour" , "day" ))
@@ -2811,8 +2807,8 @@ def test_round_temporal(unit):
28112807 "1923-07-07 08:52:35.203790336" ,
28122808 "1931-03-17 10:45:00.641559040" ,
28132809 "1932-06-16 01:16:42.911994368" ,
2814- # "1941-05-27 11:46:43.822831872",
2815- # "1943-12-14 07:32:05.424766464",
2810+ "1941-05-27 11:46:43.822831872" ,
2811+ "1943-12-14 07:32:05.424766464" ,
28162812 "1954-04-12 04:31:50.699881472" ,
28172813 "1966-02-12 17:41:28.693282560" ,
28182814 "1967-02-26 05:56:46.922376960" ,
@@ -2821,6 +2817,12 @@ def test_round_temporal(unit):
28212817 "1992-01-01 00:00:00.100000000" ,
28222818 "1999-12-04 05:55:34.794991104" ,
28232819 "2026-10-26 08:39:00.316686848" ]
2820+
2821+ # Windows timezone database appears to disagree with IANA timezone database on
2822+ # some historical timestamps. We exclude those timestamps from testing on Windows
2823+ if sys .platform == "win32" :
2824+ timestamps = timestamps [:3 ] + timestamps [4 :]
2825+
28242826 ts = pd .Series ([pd .Timestamp (x , unit = "ns" ) for x in timestamps ])
28252827 _check_temporal_rounding (ts , values , unit )
28262828
0 commit comments