Skip to content

Commit 9c40867

Browse files
committed
Only test sparse for Py3.10+.
1 parent 855756d commit 9c40867

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/_helpers.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from importlib import import_module
2+
import sys
23

34
import pytest
45

@@ -8,6 +9,10 @@
89
if np.__version__[0] == '1':
910
wrapped_libraries.append("numpy")
1011

12+
# `sparse` added array API support as of Python 3.10.
13+
if sys.version_info >= (3, 10):
14+
all_libraries.append('sparse')
15+
1116
def import_(library, wrapper=False):
1217
if library == 'cupy':
1318
pytest.importorskip(library)

0 commit comments

Comments
 (0)