From b0a325d3328ac97f769f11e8fd87cd51827d9572 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20M=C3=BChlbauer?= Date: Fri, 4 Oct 2024 14:41:56 +0200 Subject: [PATCH] match test warning --- xarray/tests/test_dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xarray/tests/test_dataset.py b/xarray/tests/test_dataset.py index f09d57915aa..cdab4120f85 100644 --- a/xarray/tests/test_dataset.py +++ b/xarray/tests/test_dataset.py @@ -3549,7 +3549,7 @@ def test_expand_dims_create_index_from_iterable(self): def test_expand_dims_non_nanosecond_conversion(self) -> None: # Regression test for https://github.com/pydata/xarray/issues/7493#issuecomment-1953091000 - with pytest.warns(UserWarning, match="non-nanosecond precision"): + with pytest.warns(UserWarning, match="non-default precision"): ds = Dataset().expand_dims({"time": [np.datetime64("2018-01-01", "s")]}) assert ds.time.dtype == np.dtype("datetime64[ns]")