From: Yaroslav Halchenko Date: Sun, 2 Apr 2017 05:06:36 +0000 (+0000) Subject: BF: define expected Series of correct for arch (eg i386) int X-Git-Tag: archive/raspbian/0.19.2-5.1+rpi1^2~10 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=82298a399e1b75c4f9e2a49e68c148e619580316;p=pandas.git BF: define expected Series of correct for arch (eg i386) int Gbp-Pq: Name changeset_ae6a0a51cf41223394b7ef1038c210045d486cc8.diff --- 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)