Skip to content
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

Error in gettz for Europe/Paris timezone #1353

Open
AlenkaF opened this issue Mar 18, 2024 · 0 comments
Open

Error in gettz for Europe/Paris timezone #1353

AlenkaF opened this issue Mar 18, 2024 · 0 comments

Comments

@AlenkaF
Copy link

AlenkaF commented Mar 18, 2024

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant