Skip to content

Commit 4e44f04

Browse files
committed
disable rounding test on windows and rename user-agent
1 parent 0935910 commit 4e44f04

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

python/pyarrow/tests/test_compute.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2797,10 +2797,10 @@ 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")
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")
28042804
@pytest.mark.timezone_data
28052805
@pytest.mark.parametrize('unit', ("nanosecond", "microsecond", "millisecond",
28062806
"second", "minute", "hour", "day"))

python/pyarrow/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def _break_traceback_cycle_from_frame(frame):
232232

233233
def _download_urllib(url, out_path):
234234
from urllib.request import urlopen, Request
235-
req = Request(url, headers={'User-Agent': 'Mozilla/5.0'})
235+
req = Request(url, headers={'User-Agent': 'pyarrow'})
236236
with urlopen(req) as response:
237237
with open(out_path, 'wb') as f:
238238
f.write(response.read())

0 commit comments

Comments
 (0)