We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21c4687 commit 0d1e86eCopy full SHA for 0d1e86e
xarray/tests/test_dataarray.py
@@ -3839,7 +3839,7 @@ def test_to_dataset_coord_value_is_dim(self) -> None:
3839
match=(
3840
re.escape("dimension 'x' would produce the variables ('a',)")
3841
+ ".*"
3842
- + re.escape("rename(a=...) or assign_coords(x=...)")
+ + re.escape("DataArray.rename(a=...) or DataArray.assign_coords(x=...)")
3843
),
3844
):
3845
array.to_dataset("x")
@@ -3860,7 +3860,9 @@ def test_to_dataset_coord_value_is_dim(self) -> None:
3860
3861
re.escape("dimension 'x' would produce the variables ('a', 'b')")
3862
3863
- + re.escape("rename(a=..., b=...) or assign_coords(x=...)")
+ + re.escape(
3864
+ "DataArray.rename(a=..., b=...) or DataArray.assign_coords(x=...)"
3865
+ )
3866
3867
3868
array2.to_dataset("x")
0 commit comments