Skip to content

Commit

Permalink
test pd.index
Browse files Browse the repository at this point in the history
  • Loading branch information
Illviljan committed Aug 5, 2024
1 parent bf83275 commit 31e1895
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xarray/tests/test_namedarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -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([])

0 comments on commit 31e1895

Please sign in to comment.