Skip to content

failing upstream-dev polyfit warning test #4565

Closed
@keewis

Description

@keewis

In xarray/tests/test_dataset.py::TestDataset::test_polyfit_warnings, the second call to polyfit:

ds.var1.polyfit("dim2", 10, full=True)

emits a warning with the current upstream-dev pandas:

xarray/tests/test_dataset.py::TestDataset::test_polyfit_warnings
  .../xarray/core/alignment.py:307: FutureWarning: Index.__or__ operating as a set operation is deprecated, in the future this will be a logical operation matching Series.__or__.  Use index.union(other) instead
    index = joiner(matching_indexes)

since the test makes sure only the first call emits a warning (a np.RankWarning), the test fails.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions