Skip to content

Commit 07d896f

Browse files
committed
refactor
1 parent 9ea7689 commit 07d896f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pandas/tests/reshape/concat/test_index.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,9 @@ def test_concat_multiindex_dfs_with_deepcopy(self):
258258
result_no_copy = concat(example_dict, names=["testname"])
259259
tm.assert_frame_equal(result_no_copy, expected)
260260

261-
def test_concat_multiindex_unique(self):
261+
def test_concat_multiindex_unique_and_duplicate(self):
262262
# GH#44786
263263
df1 = DataFrame({"col": ["a", "b", "c"]}, index=["1", "2", "2"])
264-
df2 = concat([df1], keys=["X"])
265-
result = np.array([df2.index.is_unique])
266-
expected = np.array([False])
267-
tm.assert_numpy_array_equal(result, expected)
264+
result = concat([df1], keys=["X"])
265+
assert result.index.is_unique is False
266+
assert result.index.has_duplicates is True

0 commit comments

Comments
 (0)