Skip to content

Commit 0c8a78b

Browse files
authored
skip creating a cupy-backed IndexVariable (#6872)
1 parent a17a00f commit 0c8a78b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

xarray/tests/test_variable.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2725,6 +2725,8 @@ def test_from_sparse(self, Var):
27252725

27262726
@requires_cupy
27272727
def test_from_cupy(self, Var):
2728+
if Var is IndexVariable:
2729+
pytest.skip("cupy in default indexes is not supported at the moment")
27282730
import cupy as cp
27292731

27302732
arr = np.array([1, 2, 3])

0 commit comments

Comments
 (0)