Skip to content

Commit 0d1e86e

Browse files
committed
Update tests
1 parent 21c4687 commit 0d1e86e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

xarray/tests/test_dataarray.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3839,7 +3839,7 @@ def test_to_dataset_coord_value_is_dim(self) -> None:
38393839
match=(
38403840
re.escape("dimension 'x' would produce the variables ('a',)")
38413841
+ ".*"
3842-
+ re.escape("rename(a=...) or assign_coords(x=...)")
3842+
+ re.escape("DataArray.rename(a=...) or DataArray.assign_coords(x=...)")
38433843
),
38443844
):
38453845
array.to_dataset("x")
@@ -3860,7 +3860,9 @@ def test_to_dataset_coord_value_is_dim(self) -> None:
38603860
match=(
38613861
re.escape("dimension 'x' would produce the variables ('a', 'b')")
38623862
+ ".*"
3863-
+ re.escape("rename(a=..., b=...) or assign_coords(x=...)")
3863+
+ re.escape(
3864+
"DataArray.rename(a=..., b=...) or DataArray.assign_coords(x=...)"
3865+
)
38643866
),
38653867
):
38663868
array2.to_dataset("x")

0 commit comments

Comments
 (0)