1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
Author: Diane Trout <diane@ghic.org>
Description: Skip tests for cupy which we don't have in Debian
Forwarded: no
--- a/tests/test_concatenate.py
+++ b/tests/test_concatenate.py
@@ -1623,6 +1623,7 @@
@pytest.mark.gpu
def test_error_on_mixed_device():
"""https://github.com/scverse/anndata/issues/1083"""
+ pytest.importorskip("cupy")
import cupy
import cupyx.scipy.sparse as cupy_sparse
--- a/tests/test_gpu.py
+++ b/tests/test_gpu.py
@@ -5,6 +5,8 @@ from scipy import sparse
from anndata import AnnData, Raw
+pytest.importorskip("cupy")
+
@pytest.mark.gpu
def test_gpu():
|