We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de64f5e commit 9e613ccCopy full SHA for 9e613cc
tests/_helpers.py
@@ -9,12 +9,12 @@ def import_(library, wrapper=False):
9
if 'jax' in library and sys.version_info < (3, 9):
10
pytest.skip('JAX array API support does not support Python 3.8')
11
12
+ if library == 'cupy':
13
+ pytest.importorskip(library)
14
if wrapper:
15
if 'jax' in library:
16
library = 'jax.experimental.array_api'
17
else:
18
library = 'array_api_compat.' + library
- elif library == 'cupy':
- return pytest.importorskip(library)
19
20
return import_module(library)
0 commit comments