Skip to content

Commit

Permalink
require cftime
Browse files Browse the repository at this point in the history
  • Loading branch information
mathause committed Jan 8, 2024
1 parent 5d905fd commit 0354d17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xarray/tests/test_formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import xarray as xr
from xarray.core import formatting
from xarray.tests import requires_dask, requires_netCDF4
from xarray.tests import requires_cftime, requires_dask, requires_netCDF4


class TestFormatting:
Expand Down Expand Up @@ -805,6 +805,7 @@ def test_format_xindexes(as_dataset: bool) -> None:
assert actual == expected


@requires_cftime
def test_empty_cftimeindex_repr() -> None:
index = xr.coding.cftimeindex.CFTimeIndex([])

Expand Down

0 comments on commit 0354d17

Please sign in to comment.