Skip to content

Commit 052a3fc

Browse files
author
Jean-Mathieu Deschenes
committed
This test would fail on 32 bits.
1 parent 2d0bd51 commit 052a3fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/indexing/test_timedelta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def test_boolean_indexing(self):
1313
[0, 1, 2, 10, 4, 5, 6, 7, 8, 9],
1414
[10, 10, 10, 3, 4, 5, 6, 7, 8, 9]]
1515
for cond, data in zip(conditions, expected_data):
16-
result = df.assign(x=df.mask(cond, 10).astype('int64'))
16+
result = df.assign(x=df.mask(cond, 10).astype(df['x'].dtype))
1717
expected = pd.DataFrame(data,
1818
index=pd.to_timedelta(range(10), unit='s'),
1919
columns=['x'])

0 commit comments

Comments
 (0)