()
| 1351 | |
| 1352 | @requires_cftime |
| 1353 | def test_contains_cftime_lazy() -> None: |
| 1354 | import cftime |
| 1355 | |
| 1356 | from xarray.core.common import _contains_cftime_datetimes |
| 1357 | |
| 1358 | times = np.array( |
| 1359 | [cftime.DatetimeGregorian(1, 1, 2, 0), cftime.DatetimeGregorian(1, 1, 2, 0)], |
| 1360 | dtype=object, |
| 1361 | ) |
| 1362 | array = FirstElementAccessibleArray(times) |
| 1363 | assert _contains_cftime_datetimes(array) |
| 1364 | |
| 1365 | |
| 1366 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected
searching dependent graphs…