Skip to content

Commit ec519df

Browse files
committed
Additional review changes
1 parent e77d34a commit ec519df

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

pandas/tests/indexes/common.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,8 @@ def test_setops_errorcases(self):
551551
"or array-like",
552552
method, case)
553553

554+
@pytest.mark.xfail(reason='intersection fails for monotonic decreasing '
555+
'RangeIndex (GH 17296)')
554556
def test_intersection_base(self):
555557
for name, idx in compat.iteritems(self.indices):
556558
first = idx[:5]
@@ -632,7 +634,8 @@ def test_difference_base(self):
632634
pass
633635
elif isinstance(idx, (DatetimeIndex, TimedeltaIndex)):
634636
assert result.__class__ == answer.__class__
635-
assert tm.equalContents(result.asi8, answer.asi8)
637+
tm.assert_numpy_array_equal(result.sort_values().asi8,
638+
answer.sort_values().asi8)
636639
else:
637640
result = first.difference(case)
638641
assert tm.equalContents(result, answer)

pandas/tests/indexes/test_range.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ class TestRangeIndex(Numeric):
2525
_compat_props = ['shape', 'ndim', 'size', 'itemsize']
2626

2727
def setup_method(self, method):
28-
self.indices = dict(index=RangeIndex(0, 20, 2, name='foo'))
28+
self.indices = dict(index=RangeIndex(0, 20, 2, name='foo'),
29+
index_dec=RangeIndex(18, -1, -2, name='bar'))
2930
self.setup_indices()
3031

3132
def create_index(self):

0 commit comments

Comments
 (0)