-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
[TST] make xfails strict #22139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TST] make xfails strict #22139
Conversation
@@ -142,6 +142,7 @@ def test_custom_asserts(self): | |||
|
|||
class TestConstructors(BaseJSON, base.BaseConstructorsTests): | |||
|
|||
# TODO: Should this be pytest.mark.skip? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah u can change to skip (and similar ones)
@@ -83,7 +83,7 @@ def test_nulls(idx): | |||
idx.isna() | |||
|
|||
|
|||
@pytest.mark.xfail | |||
@pytest.mark.xfail(strict=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can u add a reason
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, will try to sort that out. Also waiting to see if anything fails on the CI that passed locally.
@@ -212,7 +212,6 @@ def test_parallel_coordinates(self, iris): | |||
with tm.assert_produces_warning(FutureWarning): | |||
parallel_coordinates(df, 'Name', colors=colors) | |||
|
|||
@pytest.mark.xfail(reason="unreliable test") | |||
def test_parallel_coordinates_with_sorted_labels(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hah!
Codecov Report
@@ Coverage Diff @@
## master #22139 +/- ##
==========================================
- Coverage 92.07% 92.06% -0.01%
==========================================
Files 170 170
Lines 50688 50689 +1
==========================================
- Hits 46671 46669 -2
- Misses 4017 4020 +3
Continue to review full report at Codecov.
|
thanks, ideally also update the contributing.rst docs where we use xfail as an example to include the strict param. |
This leaves untouched xfails with reasons like "flaky on 3.7" and a few where the test itself is just a
pass
.In the process a handful of previously xfailed cases are no longer xfailed.