-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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: tzdata is a required dependency when testing #47332
Comments
Would making tzdata required solve the issue? Seems easier. |
for the nightlies to upload, will just skip the test for now (on https://github.com/MacPython/pandas-wheels). If tests fail the wheel upload to staging is bypassed. |
talking rubbish. Fails with |
added tzdata to TEST_DEPENDS for windows env for now. MacPython/pandas-wheels#185 issue remains open to fix in pandas so that pd.test() always works. |
The idea is probably to do something like
in the conftest. |
Slightly off topic, but is the idea to replace pytz in the future with tzdata? |
i suggested something similar at one point, but definitely not something decided upon |
Nightlies are sadly still broken.
On Windows, the failures are because tzdata is a required dependency when testing, because of a bug here.
pandas/pandas/conftest.py
Lines 1219 to 1220 in 259a15c
We need to create a dummy ZoneInfo object and check to see if that works as zoneinfo will not raise if tzdata is missing on import, only when creating the ZoneInfo object.
tzdata should also probably be added to the optional dependencies list in the docs and in pandas/compat/_optional.py.
I dunno which minimum version we should support though.
cc @jbrockmendel (who added zoneinfo support)
Originally posted by @lithomas1 in #46856 (comment)
The text was updated successfully, but these errors were encountered: