From 36820e3a01d43eb7cb4db68360b3b822a99f1748 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 12 Jan 2017 18:10:11 +0000 Subject: [PATCH] BF: define expected Series of correct for arch (eg i386) int Gbp-Pq: Name changeset_ae6a0a51cf41223394b7ef1038c210045d486cc8.diff --- pandas/tools/tests/test_tile.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pandas/tools/tests/test_tile.py b/pandas/tools/tests/test_tile.py index e5b9c65b..cf0da571 100644 --- a/pandas/tools/tests/test_tile.py +++ b/pandas/tools/tests/test_tile.py @@ -273,7 +273,10 @@ class TestCut(tm.TestCase): def test_single_bin(self): # issue 14652 - expected = Series([0, 0]) + # Explicit dtype since Series produces int64 for ints, while cut + # (due to numpy.searchsorted) would use int32 on i386, so let's assure + # correct default to the architecture int + expected = Series([0, 0], dtype=np.dtype(int)) s = Series([9., 9.]) result = cut(s, 1, labels=False) -- 2.30.2