Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mgunyho committed Nov 13, 2023
1 parent 21c4687 commit 0d1e86e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions xarray/tests/test_dataarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -3839,7 +3839,7 @@ def test_to_dataset_coord_value_is_dim(self) -> None:
match=(
re.escape("dimension 'x' would produce the variables ('a',)")
+ ".*"
+ re.escape("rename(a=...) or assign_coords(x=...)")
+ re.escape("DataArray.rename(a=...) or DataArray.assign_coords(x=...)")
),
):
array.to_dataset("x")
Expand All @@ -3860,7 +3860,9 @@ def test_to_dataset_coord_value_is_dim(self) -> None:
match=(
re.escape("dimension 'x' would produce the variables ('a', 'b')")
+ ".*"
+ re.escape("rename(a=..., b=...) or assign_coords(x=...)")
+ re.escape(
"DataArray.rename(a=..., b=...) or DataArray.assign_coords(x=...)"
)
),
):
array2.to_dataset("x")
Expand Down

0 comments on commit 0d1e86e

Please sign in to comment.