diff --git a/xarray/tests/test_dataset.py b/xarray/tests/test_dataset.py index f2e712e334c..838185bc6b3 100644 --- a/xarray/tests/test_dataset.py +++ b/xarray/tests/test_dataset.py @@ -1217,7 +1217,7 @@ def test_chunk_by_frequency(self, freq: str, calendar: str, add_gap: bool) -> No ΔN = 28 time = xr.date_range( "2001-01-01", periods=N + ΔN, freq="D", calendar=calendar - ).to_numpy() + ).to_numpy(copy=True) if add_gap: # introduce an empty bin time[31 : 31 + ΔN] = np.datetime64("NaT")