Skip to content

Commit a5089de

Browse files
committed
test nit
1 parent 5922b5f commit a5089de

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_array_namespace.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ def test_array_namespace(request, library, api_version, use_compat):
3232
if use_compat is False or use_compat is None and library not in wrapped_libraries:
3333
if library == "jax.numpy" and not hasattr(xp, "__array_api_version__"):
3434
# Backwards compatibility for JAX <0.4.32
35-
import jax.experimental.array_api as xp
35+
import jax.experimental.array_api
36+
assert namespace == jax.experimental.array_api
3637
else:
3738
assert namespace == xp
39+
elif library == "dask.array":
40+
assert namespace == array_api_compat.dask.array
3841
else:
39-
if library == "dask.array":
40-
assert namespace == array_api_compat.dask.array
41-
else:
42-
assert namespace == getattr(array_api_compat, library)
42+
assert namespace == getattr(array_api_compat, library)
4343

4444
if library == "numpy":
4545
# check that the same namespace is returned for NumPy scalars

0 commit comments

Comments
 (0)