Skip to content

Commit b1d9d1e

Browse files
committed
Fix tests for NumPy 2.0
1 parent 850ef72 commit b1d9d1e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/_helpers.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@
33

44
import pytest
55

6-
wrapped_libraries = ["cupy", "torch", "dask.array"]
7-
all_libraries = wrapped_libraries + ["numpy", "jax.numpy", "sparse"]
8-
import numpy as np
9-
if np.__version__[0] == '1':
10-
wrapped_libraries.append("numpy")
6+
wrapped_libraries = ["numpy", "cupy", "torch", "dask.array"]
7+
all_libraries = wrapped_libraries + ["jax.numpy", "sparse"]
118

129
# `sparse` added array API support as of Python 3.10.
1310
if sys.version_info >= (3, 10):

0 commit comments

Comments
 (0)