Skip to content

Error in gettz for Europe/Paris timezone #1353

Open

Description

@AlenkaF

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:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions