-
Notifications
You must be signed in to change notification settings - Fork 540
Error in gettz for Europe/Paris timezone #1353
Copy link
Copy link
Open
Description
It seems that in case of Europe/Paris timezone the object created from a string representation with dateutil.tz.gettz(...) has changed to Europe/Monaco in release 2.9.0 causing a test to fail on Apache Arrow CI:
...
import dateutil.tz
tz = dateutil.tz.UTC
assert pa.lib.tzinfo_to_string(tz) == 'UTC'
tz = dateutil.tz.gettz('Europe/Paris')
print(tz)
> assert pa.lib.tzinfo_to_string(tz) == 'Europe/Paris'
E AssertionError: assert 'Europe/Monaco' == 'Europe/Paris'
E - Europe/Paris
E + Europe/Monaco
pyarrow\tests\test_types.py:356: AssertionError
---------------------------- Captured stdout call -----------------------------
tzfile('Europe/Monaco')See: https://ci.appveyor.com/project/ApacheSoftwareFoundation/arrow/builds/49425633?fullLog=true#L3948
Note that this only happens on Windows builds (I can't reproduce it locally on MacOS). Versions of relevant packages on the linked CI build are:
- Python 3.10
- pytest 7.4.4
- python-dateutil 2.9.0
- tzdata database downloaded from https://data.iana.org/time-zones/releases/tzdata2021e.tar.gz
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels