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 365ea12 commit f8286d9Copy full SHA for f8286d9
tests/link/numba/test_sparse.py
@@ -77,14 +77,12 @@ def test_fn(x):
77
def test_sparse_copy():
78
@numba.njit
79
def test_fn(x):
80
- y = x.copy()
81
- return (
82
- y is not x and np.all(x.data == y.data) and np.all(x.indices == y.indices)
83
- )
+ return x.copy()
84
85
- x_val = sp.sparse.csr_matrix(np.eye(100))
+ x = sp.sparse.csr_matrix(np.eye(100))
86
87
- assert test_fn(x_val)
+ y = test_fn(x)
+ assert y is not x and np.all(x.data == y.data) and np.all(x.indices == y.indices)
88
89
90
def test_sparse_objmode():
0 commit comments