Skip to content

Commit fb3a9db

Browse files
committed
Only include changes relative to name preservation
1 parent 38aeacb commit fb3a9db

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

pandas/tests/indexes/test_base.py

-11
Original file line numberDiff line numberDiff line change
@@ -1072,17 +1072,6 @@ def test_symmetric_difference(self):
10721072
assert tm.equalContents(result, expected)
10731073
assert result.name == 'new_name'
10741074

1075-
def test_intersection_difference(self):
1076-
# Test that the intersection of an index with an
1077-
# empty index produces the same index as the difference
1078-
# of an index with itself. Test for all types
1079-
skip_index_keys = ['repeats']
1080-
for key, id in self.indices.items():
1081-
if key not in skip_index_keys:
1082-
inter = id.intersection(self.create_empty_index(id))
1083-
diff = id.difference(id)
1084-
tm.assert_index_equal(inter, diff)
1085-
10861075
def test_is_numeric(self):
10871076
assert not self.dateIndex.is_numeric()
10881077
assert not self.strIndex.is_numeric()

pandas/tests/reshape/test_concat.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -2055,10 +2055,10 @@ def test_concat_categoricalindex(self):
20552055

20562056
result = pd.concat([a, b, c], axis=1)
20572057

2058-
exp_idx = pd.CategoricalIndex([0, 1, 2, 9])
2059-
exp = pd.DataFrame({0: [1, np.nan, np.nan, 1],
2060-
1: [2, 2, np.nan, np.nan],
2061-
2: [np.nan, 3, 3, np.nan]},
2058+
exp_idx = pd.CategoricalIndex([9, 0, 1, 2], categories=categories)
2059+
exp = pd.DataFrame({0: [1, 1, np.nan, np.nan],
2060+
1: [np.nan, 2, 2, np.nan],
2061+
2: [np.nan, np.nan, 3, 3]},
20622062
columns=[0, 1, 2],
20632063
index=exp_idx)
20642064
tm.assert_frame_equal(result, exp)

0 commit comments

Comments
 (0)