Skip to content

Commit 9e613cc

Browse files
committed
Fix cupy skipping in the tests
1 parent de64f5e commit 9e613cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/_helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ def import_(library, wrapper=False):
99
if 'jax' in library and sys.version_info < (3, 9):
1010
pytest.skip('JAX array API support does not support Python 3.8')
1111

12+
if library == 'cupy':
13+
pytest.importorskip(library)
1214
if wrapper:
1315
if 'jax' in library:
1416
library = 'jax.experimental.array_api'
1517
else:
1618
library = 'array_api_compat.' + library
17-
elif library == 'cupy':
18-
return pytest.importorskip(library)
1919

2020
return import_module(library)

0 commit comments

Comments
 (0)