Skip to content

Commit d17f1e9

Browse files
committed
Merge pull request #7681 from jreback/numpy_issue
TST/COMPAT: numpy master compat with timedelta type coercion
2 parents f6ba5c4 + 9ba15a7 commit d17f1e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tseries/tests/test_tslib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def test_tz(self):
9898
self.assertEqual(conv.hour, 19)
9999

100100
def test_barely_oob_dts(self):
101-
one_us = np.timedelta64(1)
101+
one_us = np.timedelta64(1).astype('timedelta64[us]')
102102

103103
# By definition we can't go out of bounds in [ns], so we
104104
# convert the datetime64s to [us] so we can go out of bounds

0 commit comments

Comments
 (0)