Skip to content

Commit ad13f08

Browse files
committed
BF: define expected Series of correct for arch (eg i386) int
1 parent 136a6fb commit ad13f08

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pandas/tools/tests/test_tile.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,10 @@ def test_qcut_duplicates_bin(self):
288288

289289
def test_single_bin(self):
290290
# issue 14652
291-
expected = Series([0, 0])
291+
# Explicit dtype since Series produces int64 for ints, while cut
292+
# (due to numpy.searchsorted) would use int32 on i386, so let's assure
293+
# correct default to the architecture int
294+
expected = Series([0, 0], dtype=np.dtype(int))
292295

293296
s = Series([9., 9.])
294297
result = cut(s, 1, labels=False)

0 commit comments

Comments
 (0)