-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TST: add messages to bare pytest raises in pandas/tests/io/pytables/test_timezones.py #37975
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 messages to bare pytest raises in pandas/tests/io/pytables/test_timezones.py #37975
Conversation
…ytest-raises-timezones
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.
Nice, thanks! looks good to me pending green
feel free to take on more than one file in the same PR if the changes aren't too big
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.
It looks like, during one of the CI jobs, the error shows 'existing_value [dateutil/US/Eastern] conflicts with new value [dateutil/EET]'
, without /usr/share/zoneinfo
so you may need a regular expression here, e.g. something like
msg = (
r"invalid info for \[values_block_1\] for \[tz\], "
r"existing_value \[dateutil/.*US/Eastern\] "
r"conflicts with new value \[dateutil/.*EET\]"
)
Thanks!
Will do, I think that will work for a couple of the other files. |
@MarcoGorelli thanks for your suggestion, I made the change and now all the checks pass. |
thanks @marktgraham |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff
This PR adds messages to the bare pytest raises in pandas/tests/io/pytables/test_timezones.py. This PR references #30999.