From b5289ebb21f95aee88134fcc859fce41261bf661 Mon Sep 17 00:00:00 2001 From: Dylan Pulver Date: Thu, 22 Oct 2026 01:10:13 -0400 Subject: [PATCH] Collect the as_timedelta NotImplementedError test `as_timedelta_not_implemented_error` sits between two tests in test_cftime_offsets.py and asserts that `Tick().as_timedelta()` raises NotImplementedError, but the name has no `test_` prefix, so pytest has never collected it. Nothing else in the repository references the name. Renaming it collects and passes: the file goes from 2861 to 2862 tests. Co-authored-by: Claude --- xarray/tests/test_cftime_offsets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xarray/tests/test_cftime_offsets.py b/xarray/tests/test_cftime_offsets.py index 1277b7d6c01..b06b6b4063a 100644 --- a/xarray/tests/test_cftime_offsets.py +++ b/xarray/tests/test_cftime_offsets.py @@ -1540,7 +1540,7 @@ def test_date_range_like_errors(): date_range_like(da, "noleap") -def as_timedelta_not_implemented_error(): +def test_as_timedelta_not_implemented_error(): tick = Tick() with pytest.raises(NotImplementedError): tick.as_timedelta()