Skip to content

Commit 1f0c547

Browse files
authored
CI/TST: Fix xfail(strict=False) condition (#46150)
* CI/TST: Fix xfail(strict=False) condition * add comment
1 parent eaefc5c commit 1f0c547

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pandas/tests/indexes/test_setops.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,20 @@ def test_union_different_types(index_flat, index_flat2, request):
5050
if (
5151
not idx1.is_unique
5252
and not idx2.is_unique
53-
and not idx2.is_monotonic_decreasing
5453
and idx1.dtype.kind == "i"
5554
and idx2.dtype.kind == "b"
5655
) or (
5756
not idx2.is_unique
5857
and not idx1.is_unique
59-
and not idx1.is_monotonic_decreasing
6058
and idx2.dtype.kind == "i"
6159
and idx1.dtype.kind == "b"
6260
):
61+
# Each condition had idx[1|2].is_monotonic_decreasing
62+
# but failed when e.g.
63+
# idx1 = Index(
64+
# [True, True, True, True, True, True, True, True, False, False], dtype='bool'
65+
# )
66+
# idx2 = Int64Index([0, 0, 1, 1, 2, 2], dtype='int64')
6367
mark = pytest.mark.xfail(
6468
reason="GH#44000 True==1", raises=ValueError, strict=False
6569
)

0 commit comments

Comments
 (0)