From 82298a399e1b75c4f9e2a49e68c148e619580316 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Sun, 2 Apr 2017 05:06:36 +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