Skip to content

Commit

Permalink
Update test_namedarray.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Illviljan committed Aug 5, 2024
1 parent 30f8cdd commit 6ed1ae6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xarray/tests/test_namedarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,10 +360,10 @@ def test_duck_array_class_array_api(self) -> None:
arrayapi_a = nxp.asarray([2.1, 4], dtype=nxp.int64)
check_duck_array_typevar(arrayapi_a)

def test_pd_index_duckarray() -> None:
def test_pd_index_duckarray(self) -> None:
import pandas as pd

a: duckarray = pd.Index([])
a: duckarray[Any, Any] = pd.Index([])
check_duck_array_typevar(a)

Check failure on line 367 in xarray/tests/test_namedarray.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.9 bare-minimum

TestNamedArray.test_pd_index_duckarray TypeError: a (<class 'pandas.core.indexes.base.Index'>) is not a valid _arrayfunction or _arrayapi

Check failure on line 367 in xarray/tests/test_namedarray.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.11 all-but-dask

TestNamedArray.test_pd_index_duckarray TypeError: a (<class 'pandas.core.indexes.base.Index'>) is not a valid _arrayfunction or _arrayapi

Check failure on line 367 in xarray/tests/test_namedarray.py

View workflow job for this annotation

GitHub Actions / macos-latest py3.12

TestNamedArray.test_pd_index_duckarray TypeError: a (<class 'pandas.core.indexes.base.Index'>) is not a valid _arrayfunction or _arrayapi

Check failure on line 367 in xarray/tests/test_namedarray.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.9 min-all-deps

TestNamedArray.test_pd_index_duckarray TypeError: a (<class 'pandas.core.indexes.base.Index'>) is not a valid _arrayfunction or _arrayapi

Check failure on line 367 in xarray/tests/test_namedarray.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.9

TestNamedArray.test_pd_index_duckarray TypeError: a (<class 'pandas.core.indexes.base.Index'>) is not a valid _arrayfunction or _arrayapi

Check failure on line 367 in xarray/tests/test_namedarray.py

View workflow job for this annotation

GitHub Actions / macos-latest py3.9

TestNamedArray.test_pd_index_duckarray TypeError: a (<class 'pandas.core.indexes.base.Index'>) is not a valid _arrayfunction or _arrayapi

Check failure on line 367 in xarray/tests/test_namedarray.py

View workflow job for this annotation

GitHub Actions / ubuntu-latest py3.12

TestNamedArray.test_pd_index_duckarray TypeError: a (<class 'pandas.core.indexes.base.Index'>) is not a valid _arrayfunction or _arrayapi

def test_new_namedarray(self) -> None:
Expand Down

0 comments on commit 6ed1ae6

Please sign in to comment.