-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ERR: stringify error message from parsers.pyx, closes #29233 #30246
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
try: | ||
pd.read_csv("nonexistent_name") | ||
except FileNotFoundError as err: | ||
assert err.strerror == "File nonexistent_name does not exist" |
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 pytest.raises not be used?
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.
good idea. i think this was split off from a branch where i was also checking err.errno
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.
also looks like theres another test i can merge this into
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.
@jbrockmendel lgtm
thanks @jbrockmendel |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff