-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
TST: Use sort
fixture in more places
#32292
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: Use sort
fixture in more places
#32292
Conversation
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.
Lgtm @simonjayhawkins
Thanks @SaturnFromTitan In order to close the issue can you do test_union_noncomparable in pandas\tests\indexes\ranges\test_setops.py as well. There are several cases of @pytest.mark.parametrize("sort", [True, False]) as well. so having this fixture in top-level conftest maybe confusing. for instance groupby where the default is True, unlike intersection where the default is False. so is the None value in the fixture effectively True. would tests break if the fixture was params=[None, True, False]? |
Yes, the tests break when
I'll move the fixture to pandas/tests/indexes/conftest.py instead and adjust the docstring |
@simonjayhawkins I updated the docstring again, please have another look |
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.
Thanks @SaturnFromTitan changes lgtm.
sort
fixture in more places #32183black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff