Skip to content

⚠️ Nightly upstream-dev CI failed ⚠️ #5919

Closed

Description

@github-actions

Workflow Run URL

Python 3.9 Test Summary Info
FAILED xarray/tests/test_variable.py::TestVariable::test_pandas_period_index
FAILED xarray/tests/test_variable.py::TestVariableWithDask::test_pandas_period_index
FAILED xarray/tests/test_variable.py::TestIndexVariable::test_pandas_period_index

Activity

  1. added
    CI
    on Oct 30, 2021
  2. mathause commented on Nov 1, 2021

    @mathause
    Collaborator

    The test failures can be reproduced with:

    import pandas as pd
    import numpy as np
    np.array(0) == pd.Period("2000", freq="B")

    This returns False in pandas 1.3.4 but raises TypeError: iteration over a 0-d array in pandas master. I think the culprit is pandas-dev/pandas#44182 which added a code path for numpy arrays in Period.__richcmp__.

    The failure happens in

    assert v[0] == pd.Period("2000", freq="B")

    and we could fix it with

    -        assert v[0] == pd.Period("2000", freq="B")
    +        assert v[0:1] == pd.Period("2000", freq="B")
  3. mathause commented on Nov 2, 2021

    @mathause
    Collaborator

    Should get fixed upstream: pandas-dev/pandas#44285

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

    CItopic-testingupstream issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions