-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
TST: insert 'match' to bare pytest raises in pandas/tests/tseries/off… #36682
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
Please have look at this PR. I am new to this, I have tried to follow guidelines as much as possible. FYI @MomIsBestFriend |
"cls, left, right, comparison", | ||
[ | ||
(cls, left, right, comparison) | ||
for cls in tick_classes |
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.
We don't want for loops inside the parameters, parametrizing is already a type of for loop. If you check some of the other examples in the code base it might become a bit more clear.
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.
i will have look at this. I used this as left, right arguments were dependent on cls vlaue.
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.
Ah I missed that part, maybe parametrizing isn't as clean as I thought
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.
so should i remove it from left and right. And keep it only for cls and comparison.
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 now I suppose just adding that error message should be good for this PR (any other cleanup could always be done as follow-up). Sorry for the confusion.
…sets/test_ticks.py
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 @krajatcl
…sets/test_ticks.py (pandas-dev#36682)
…sets/test_ticks.py
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff
ref: #30999