Skip to content

Commit 91d2155

Browse files
author
tyuyoshi
committed
TST: add variable
1 parent aacc75c commit 91d2155

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pandas/tests/indexes/categorical/test_category.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,8 @@ def test_append(self):
295295
expected = CategoricalIndex(
296296
["a", "b", "c", "b", "a", "c"], categories=["a", "b", "c"]
297297
)
298-
tm.assert_index_equal(ci1.append(ci2), expected)
298+
result = ci1.append(ci2)
299+
tm.assert_index_equal(result, expected)
299300

300301

301302
class TestCategoricalIndex2:

pandas/tests/reshape/concat/test_concat.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,8 @@ def test_concat_with_categorical_indices(self):
521521
["a", "b", "c", "b", "a", "c"], categories=["a", "b", "c"]
522522
),
523523
)
524-
tm.assert_frame_equal(concat([df1, df2]), expected)
524+
result = concat([df1, df2])
525+
tm.assert_frame_equal(result, expected)
525526

526527

527528
@pytest.mark.parametrize("pdt", [Series, DataFrame])

0 commit comments

Comments
 (0)