Skip to content

Commit

Permalink
Only test sparse when it can actually be imported.
Browse files Browse the repository at this point in the history
  • Loading branch information
hameerabbasi committed May 15, 2024
1 parent 9c40867 commit 44681b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
all_libraries.append('sparse')

def import_(library, wrapper=False):
if library == 'cupy':
# CuPy requires a GPU
# `sparse` has a dependency conflict with NumPy 1.21
if library in {'cupy', 'sparse'}:
pytest.importorskip(library)
if wrapper:
if 'jax' in library:
Expand Down

0 comments on commit 44681b6

Please sign in to comment.