-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TST: add message matches to pytest.raises in various tests GH30999 #38350
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: add message matches to pytest.raises in various tests GH30999 #38350
Conversation
I tried to follow the contributing guidelines as best as I could. If there's any problem, let me know. Edit: Looks like some tests didn't pass. @MarcoGorelli can you give me some pointers on how to fix this? |
# test case for testing invalid encoding | ||
with pytest.raises(ValueError): | ||
with pytest.raises(ValueError, match=msg): |
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.
looking at the CI the message being thrown is different
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 thought that the message didn't exist and wrote one, I'll fix them so they match with what's supposed to say. Where can I find the exact message?
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.
run the code that throws the error
thanks @JoseNavy |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff
Files changed:
pandas/tests/io/pytables/test_complex.py
pandas/tests/io/test_clipboard.py
pandas/tests/plotting/frame/test_frame_subplots.py