Skip to content

Commit

Permalink
CI/TST: Fix xfail(strict=False) condition (pandas-dev#46150)
Browse files Browse the repository at this point in the history
* CI/TST: Fix xfail(strict=False) condition

* add comment
  • Loading branch information
mroeschke authored Feb 25, 2022
1 parent eaefc5c commit 1f0c547
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pandas/tests/indexes/test_setops.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,20 @@ def test_union_different_types(index_flat, index_flat2, request):
if (
not idx1.is_unique
and not idx2.is_unique
and not idx2.is_monotonic_decreasing
and idx1.dtype.kind == "i"
and idx2.dtype.kind == "b"
) or (
not idx2.is_unique
and not idx1.is_unique
and not idx1.is_monotonic_decreasing
and idx2.dtype.kind == "i"
and idx1.dtype.kind == "b"
):
# Each condition had idx[1|2].is_monotonic_decreasing
# but failed when e.g.
# idx1 = Index(
# [True, True, True, True, True, True, True, True, False, False], dtype='bool'
# )
# idx2 = Int64Index([0, 0, 1, 1, 2, 2], dtype='int64')
mark = pytest.mark.xfail(
reason="GH#44000 True==1", raises=ValueError, strict=False
)
Expand Down

0 comments on commit 1f0c547

Please sign in to comment.