Skip to content

Conversation

Leo-Fish
Copy link

Investigation
The test function pandas.tests.indexes.test_setops::test_union_different_types was identified as potentially flaky by this issue: #46144.
To isolate the behavior, I managed to target a set of specific parameterizations that was unexpectedly passing:
[nullable_bool-repeats]
[repeats-nullable_bool]
[repeats-bool-dtype]
[bool-dtype-repeats]
I ran this single test case repeatedly for 50 times.
The result was all xpassed and 0 xfailed.
This demonstrates that this specific test case is either not flaky, or the flakiness has been reduced. The xfail marker, originally added for issue GH#44000, is no longer necessary for this parameter set.
While the overall test function appeared flaky due to the mix of xfailed and xpassed results, the evidence suggests the root cause is several outdated xfail markers rather than non-deterministic behavior.

Change
This PR proposes to remove the @pytest.mark.xfail decorator for the mentioned parameter set. The test will now run and pass as a standard test.

@Leo-Fish Leo-Fish closed this Sep 26, 2025
@Leo-Fish Leo-Fish deleted the fix-flaky branch September 26, 2025 04:41
@Leo-Fish Leo-Fish restored the fix-flaky branch September 26, 2025 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant