Skip to content

Commit b0a325d

Browse files
committed
match test warning
1 parent fa5d2e3 commit b0a325d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarray/tests/test_dataset.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3549,7 +3549,7 @@ def test_expand_dims_create_index_from_iterable(self):
35493549

35503550
def test_expand_dims_non_nanosecond_conversion(self) -> None:
35513551
# Regression test for https://github.com/pydata/xarray/issues/7493#issuecomment-1953091000
3552-
with pytest.warns(UserWarning, match="non-nanosecond precision"):
3552+
with pytest.warns(UserWarning, match="non-default precision"):
35533553
ds = Dataset().expand_dims({"time": [np.datetime64("2018-01-01", "s")]})
35543554
assert ds.time.dtype == np.dtype("datetime64[ns]")
35553555

0 commit comments

Comments
 (0)