diff --git a/tests/_helpers.py b/tests/_helpers.py index e52c205d..cd9044de 100644 --- a/tests/_helpers.py +++ b/tests/_helpers.py @@ -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: