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

Fix broken test that fails CI upstream #7168

Merged
merged 1 commit into from
Oct 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions xarray/tests/test_formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,12 +637,12 @@ def test__mapping_repr_recursive() -> None:
# GH:issue:7111

# direct recursion
ds = xr.Dataset({"a": [["x"], [1, 2, 3]]})
ds = xr.Dataset({"a": ("x", [1, 2, 3])})
ds.attrs["ds"] = ds
formatting.dataset_repr(ds)

# indirect recursion
ds2 = xr.Dataset({"b": [["y"], [1, 2, 3]]})
ds2 = xr.Dataset({"b": ("y", [1, 2, 3])})
ds.attrs["ds"] = ds2
ds2.attrs["ds"] = ds
formatting.dataset_repr(ds2)
Expand Down