Skip to content

Commit 4301c3f

Browse files
committed
mark.xfail instead of skip in test_setops
1 parent 81ac496 commit 4301c3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/indexes/test_setops.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def test_set_ops_error_cases(self, case, method, index):
210210
@pytest.mark.filterwarnings(r"ignore:PeriodDtype\[B\] is deprecated:FutureWarning")
211211
def test_intersection_base(self, index):
212212
if isinstance(index, CategoricalIndex):
213-
pytest.skip(f"Not relevant for {type(index).__name__}")
213+
pytest.mark.xfail(reason="Not relevant for CategoricalIndex")
214214

215215
first = index[:5].unique()
216216
second = index[:3].unique()
@@ -236,7 +236,7 @@ def test_intersection_base(self, index):
236236
@pytest.mark.filterwarnings(r"ignore:PeriodDtype\[B\] is deprecated:FutureWarning")
237237
def test_union_base(self, index):
238238
if index.inferred_type in ["mixed", "mixed-integer"]:
239-
pytest.skip("Mixed-type Index not orderable; union fails")
239+
pytest.mark.xfail(reason="Not relevant for mixed types")
240240

241241
index = index.unique()
242242

0 commit comments

Comments
 (0)