Skip to content

Commit

Permalink
match test warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kmuehlbauer committed Oct 4, 2024
1 parent fa5d2e3 commit b0a325d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/tests/test_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]")

Expand Down

0 comments on commit b0a325d

Please sign in to comment.