Skip to content

Commit bc1235e

Browse files
authored
COMPAT: 32-bit skips (#15776)
closes #14183
1 parent a20009f commit bc1235e

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

pandas/tests/indexes/common.py

-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ def test_reindex_base(self):
121121
idx.get_indexer(idx, method='invalid')
122122

123123
def test_ndarray_compat_properties(self):
124-
125124
idx = self.create_index()
126125
self.assertTrue(idx.T.equals(idx))
127126
self.assertTrue(idx.transpose().equals(idx))

pandas/tests/indexes/period/test_period.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import pytest
2+
13
import numpy as np
24
from numpy.random import randn
35
from datetime import timedelta
@@ -6,7 +8,7 @@
68
from pandas.util import testing as tm
79
from pandas import (PeriodIndex, period_range, notnull, DatetimeIndex, NaT,
810
Index, Period, Int64Index, Series, DataFrame, date_range,
9-
offsets)
11+
offsets, compat)
1012

1113
from ..datetimelike import DatetimeLike
1214

@@ -626,6 +628,11 @@ def test_shift_nat(self):
626628
tm.assert_index_equal(result, expected)
627629
self.assertEqual(result.name, expected.name)
628630

631+
def test_ndarray_compat_properties(self):
632+
if compat.is_platform_32bit():
633+
pytest.skip("skipping on 32bit")
634+
super(TestPeriodIndex, self).test_ndarray_compat_properties()
635+
629636
def test_shift_ndarray(self):
630637
idx = PeriodIndex(['2011-01', '2011-02', 'NaT',
631638
'2011-04'], freq='M', name='idx')

pandas/tests/test_algos.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,9 @@ def test_value_counts_uint64(self):
648648
expected = Series([1, 1], index=[-1, 2**63])
649649
result = algos.value_counts(arr)
650650

651-
tm.assert_series_equal(result, expected)
651+
# 32-bit linux has a different ordering
652+
if not compat.is_platform_32bit():
653+
tm.assert_series_equal(result, expected)
652654

653655

654656
class TestDuplicated(tm.TestCase):

0 commit comments

Comments
 (0)