We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa5d2e3 commit b0a325dCopy full SHA for b0a325d
xarray/tests/test_dataset.py
@@ -3549,7 +3549,7 @@ def test_expand_dims_create_index_from_iterable(self):
3549
3550
def test_expand_dims_non_nanosecond_conversion(self) -> None:
3551
# Regression test for https://github.com/pydata/xarray/issues/7493#issuecomment-1953091000
3552
- with pytest.warns(UserWarning, match="non-nanosecond precision"):
+ with pytest.warns(UserWarning, match="non-default precision"):
3553
ds = Dataset().expand_dims({"time": [np.datetime64("2018-01-01", "s")]})
3554
assert ds.time.dtype == np.dtype("datetime64[ns]")
3555
0 commit comments