From 88f0f0d13e7d3960da296b12f0138c9d6926b14f Mon Sep 17 00:00:00 2001 From: Jeff Reback Date: Tue, 21 Mar 2017 20:30:23 -0400 Subject: [PATCH] COMPAT: 32-bit skips closes #14183 --- pandas/tests/indexes/common.py | 1 - pandas/tests/indexes/period/test_period.py | 9 ++++++++- pandas/tests/test_algos.py | 4 +++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/pandas/tests/indexes/common.py b/pandas/tests/indexes/common.py index b1e6bd7520c69..e9122f7a17359 100644 --- a/pandas/tests/indexes/common.py +++ b/pandas/tests/indexes/common.py @@ -121,7 +121,6 @@ def test_reindex_base(self): idx.get_indexer(idx, method='invalid') def test_ndarray_compat_properties(self): - idx = self.create_index() self.assertTrue(idx.T.equals(idx)) self.assertTrue(idx.transpose().equals(idx)) diff --git a/pandas/tests/indexes/period/test_period.py b/pandas/tests/indexes/period/test_period.py index 1739211982b10..4fbadfca06ede 100644 --- a/pandas/tests/indexes/period/test_period.py +++ b/pandas/tests/indexes/period/test_period.py @@ -1,3 +1,5 @@ +import pytest + import numpy as np from numpy.random import randn from datetime import timedelta @@ -6,7 +8,7 @@ from pandas.util import testing as tm from pandas import (PeriodIndex, period_range, notnull, DatetimeIndex, NaT, Index, Period, Int64Index, Series, DataFrame, date_range, - offsets) + offsets, compat) from ..datetimelike import DatetimeLike @@ -626,6 +628,11 @@ def test_shift_nat(self): tm.assert_index_equal(result, expected) self.assertEqual(result.name, expected.name) + def test_ndarray_compat_properties(self): + if compat.is_platform_32bit(): + pytest.skip("skipping on 32bit") + super(TestPeriodIndex, self).test_ndarray_compat_properties() + def test_shift_ndarray(self): idx = PeriodIndex(['2011-01', '2011-02', 'NaT', '2011-04'], freq='M', name='idx') diff --git a/pandas/tests/test_algos.py b/pandas/tests/test_algos.py index 7a3cc3e2c3cd7..ce925f756edb7 100644 --- a/pandas/tests/test_algos.py +++ b/pandas/tests/test_algos.py @@ -648,7 +648,9 @@ def test_value_counts_uint64(self): expected = Series([1, 1], index=[-1, 2**63]) result = algos.value_counts(arr) - tm.assert_series_equal(result, expected) + # 32-bit linux has a different ordering + if not compat.is_platform_32bit(): + tm.assert_series_equal(result, expected) class TestDuplicated(tm.TestCase):