tadeja commented on code in PR #51404:
URL: https://github.com/apache/arrow/pull/51404#discussion_r4183135587
##########
python/pyarrow/tests/test_pandas.py:
##########
@@ -5006,7 +5006,7 @@ def test_does_not_mutate_timedelta_dtype():
assert np.dtype(np.timedelta64) == expected
- df = pd.DataFrame({"a": [np.timedelta64()]})
+ df = pd.DataFrame({"a": [np.timedelta64(0, "s")]})
Review Comment:
But unit is specified at: `df = pd.DataFrame({"a": [np.timedelta64(0,
"s")]})`
Restricting this test to NumPy < 2.6.0 shouldn't be needed (as test's second
assertion seems to correctly fail with
[pre-13553](https://github.com/apache/arrow/pull/13553/changes#diff-d16c6f82df0c35bc3791cd26cd4107c20d5c7532d5c7ff9737d701aa9b65dc4bL170)
on NumPy 2.6 nightly too)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]