-
Notifications
You must be signed in to change notification settings - Fork 915
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
Fix warnings in test_categorical.py. #10354
Fix warnings in test_categorical.py. #10354
Conversation
@@ -401,8 +414,9 @@ def test_categorical_as_unordered(pd_str_cat, inplace): | |||
[ | |||
pytest.param( | |||
True, | |||
marks=pytest.mark.xfail( | |||
reason="https://github.com/pandas-dev/pandas/issues/43232" | |||
marks=pytest.mark.skipif( |
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.
This xfail
can be replaced by a skipif
because the underlying bug pandas-dev/pandas#43232 was resolved in pandas 1.3.4.
Codecov Report
@@ Coverage Diff @@
## branch-22.04 #10354 +/- ##
================================================
- Coverage 10.62% 10.62% -0.01%
================================================
Files 122 122
Lines 20973 20974 +1
================================================
Hits 2228 2228
- Misses 18745 18746 +1
Continue to review full report at Codecov.
|
@gpucibot merge |
This PR catches or silences warnings in
test_categorical.py
. (I am working through one test file at a time so we can enable-Werr
in the future.) Most of the warnings come from deprecatedinplace
arguments to pandas' categorical functions. Theinplace
argument will be removed in pandas 2.0. Until then, we should just hide the warning.Additionally, I refactored some
inplace
behavior to make the expected behavior of the test clearer.