-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
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: Replace pytest.xfail #38929
TST: Replace pytest.xfail #38929
Conversation
pandas/tests/indexes/test_common.py
Outdated
@@ -388,7 +388,7 @@ def test_asi8_deprecation(self, index): | |||
@pytest.mark.parametrize("na_position", [None, "middle"]) | |||
def test_sort_values_invalid_na_position(index_with_missing, na_position): | |||
if isinstance(index_with_missing, (CategoricalIndex, MultiIndex)): | |||
pytest.xfail("missing value sorting order not defined for index type") | |||
pytest.skip("missing value sorting order not defined for index type") |
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.
hmm i would leave these as xfail and add_marker here. e.g. these are a missing api that we should eventually fix.
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.
For MultiIndex we get NotImplementedError; this should certainly be left as xfail. However for CategoricalIndex the computation is successful and sometimes the order is "correct" and sometimes not. I think this should skip instead.
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.
Sorry, my remark is about test_sort_values_with_missing
, the test immediately below this one.
thanks @rhshadrach |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff
Part of #38902.