Skip to content
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
2 changes: 1 addition & 1 deletion xarray/tests/test_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -4827,7 +4827,7 @@ def test_setitem(self) -> None:
data4[{"dim2": [2, 3]}] = data3["var1"][{"dim2": [3, 4]}].values
data5 = data4.astype(str)
data5["var4"] = data4["var1"]
err_msg = r"could not convert string to float: np\.str_\('a'\)"
err_msg = r"could not convert string to float: (np\.str_\()?'a'\)?"
with pytest.raises(ValueError, match=err_msg):
data5[{"dim2": 1}] = "a"

Expand Down
Loading