-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TST/CLN: clean up indexes/multi/test_unique_and_duplicates #21900
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
Conversation
Test failure appears unrelated. Can you push again so it re-runs? |
Codecov Report
@@ Coverage Diff @@
## master #21900 +/- ##
==========================================
+ Coverage 91.95% 91.96% +<.01%
==========================================
Files 166 166
Lines 50274 50323 +49
==========================================
+ Hits 46231 46281 +50
+ Misses 4043 4042 -1
Continue to review full report at Codecov.
|
@jbrockmendel All green :) |
|
||
|
||
def test_duplicate_level_names_access_raises(idx): | ||
idx.names = ['foo', 'foo'] |
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.
is there an issue number asssociated?
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.
Don't know, just moving tests around
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.
from pandas.compat import range, u | ||
|
||
|
||
@pytest.fixture |
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.
should go in the conftest.py
thanks @h-vetinari |
Splitting up #21645
duplicated
, including a fixture for aMultiIndex
with duplicatestest_duplicates
) into smaller chunkstest_unique_na
) that was for anIndex
(notMultiIndex
), and exists verbatim intests/indexes/common.py
test_duplicate_level_names_access_raises
to its appropriate module