Skip to content

Commit b12bcfa

Browse files
authored
Silence warnings (#333)
1 parent f42f3ff commit b12bcfa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/test_xarray.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ def test_groupby_bins_indexed_coordinate(method):
421421
)
422422
},
423423
coords={
424-
"time": pd.date_range("2013-01-01", "2013-02-01", freq="6H"),
424+
"time": pd.date_range("2013-01-01", "2013-02-01", freq="6h"),
425425
"lat": np.arange(75.0, 14.9, -2.5),
426426
"lon": np.arange(200.0, 331.0, 2.5),
427427
},
@@ -533,7 +533,7 @@ def test_dtype(add_nan, chunk, dtype, dtype_out, engine):
533533
@pytest.mark.parametrize("chunk", [pytest.param(True, marks=requires_dask), False])
534534
@pytest.mark.parametrize("use_flox", [True, False])
535535
def test_dtype_accumulation(use_flox, chunk):
536-
datetimes = pd.date_range("2010-01", "2015-01", freq="6H", inclusive="left")
536+
datetimes = pd.date_range("2010-01", "2015-01", freq="6h", inclusive="left")
537537
samples = 10 + np.cos(2 * np.pi * 0.001 * np.arange(len(datetimes))) * 1
538538
samples += np.random.randn(len(datetimes))
539539
samples = samples.astype("float32")
@@ -593,7 +593,7 @@ def test_preserve_multiindex():
593593

594594

595595
def test_fill_value_xarray_behaviour():
596-
times = pd.date_range("2000-01-01", freq="6H", periods=10)
596+
times = pd.date_range("2000-01-01", freq="6h", periods=10)
597597
ds = xr.Dataset(
598598
{
599599
"bar": (
@@ -605,11 +605,11 @@ def test_fill_value_xarray_behaviour():
605605
}
606606
)
607607

608-
pd.date_range("2000-01-01", freq="3H", periods=19)
608+
pd.date_range("2000-01-01", freq="3h", periods=19)
609609
with xr.set_options(use_flox=False):
610-
expected = ds.resample(time="3H").sum()
610+
expected = ds.resample(time="3h").sum()
611611
with xr.set_options(use_flox=True):
612-
actual = ds.resample(time="3H").sum()
612+
actual = ds.resample(time="3h").sum()
613613
xr.testing.assert_identical(expected, actual)
614614

615615

0 commit comments

Comments
 (0)