-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TST: disallow bare pytest raises #34940
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: disallow bare pytest raises #34940
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.
Thanks @boweyism for the PR. generally lgtm.
@@ -870,7 +880,7 @@ def test_str_query_method(self, parser, engine): | |||
|
|||
for lhs, op, rhs in zip(lhs, ops, rhs): | |||
ex = f"{lhs} {op} {rhs}" | |||
msg = r"'(Not)?In' nodes are not implemented" | |||
# msg = r"'(Not)?In' nodes are not implemented" |
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 leave this commented out. out of curiosity why move outside if block if message repeated on L911?
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 left that in there by mistake. Also, I overlooked the if block. I'll put it there. (I had originally put it inside of the for loop)
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.
can you remove this line entirely. we don't want commented out code left behind.
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.
Yeah, I removed it:
336c96d
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.
still showing in diff. we don't want commented out code left behind.
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.
whoops.. my bad. test_str_query_method and test_str_LIST_query_method got me confused. I've updated it
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 @boweyism for the changes. lgtm pending green.
thanks @boweyism |
xref #30999
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff
Changes for:
Belongs to #30999