From 31e1895e842dbe45aa0af258a0e2886930addc12 Mon Sep 17 00:00:00 2001 From: Illviljan <14371165+Illviljan@users.noreply.github.com> Date: Mon, 5 Aug 2024 14:01:25 +0200 Subject: [PATCH] test pd.index --- xarray/tests/test_namedarray.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xarray/tests/test_namedarray.py b/xarray/tests/test_namedarray.py index 7687765e659..c9b63d0d518 100644 --- a/xarray/tests/test_namedarray.py +++ b/xarray/tests/test_namedarray.py @@ -561,3 +561,6 @@ def test_broadcast_to_errors( def test_warn_on_repeated_dimension_names(self) -> None: with pytest.warns(UserWarning, match="Duplicate dimension names"): NamedArray(("x", "x"), np.arange(4).reshape(2, 2)) + + def test_pd_index_duckarray() -> None: + a: duckarray = pd.Index([])