Skip to content

Commit 2a94687

Browse files
committed
test: fix dense extraction in scipy sparse
1 parent 95c62ff commit 2a94687

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytests/test_linearoperator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def test_sparse(par):
122122
D = np.diag(diag)
123123
Dop = Diagonal(diag, dtype=par["dtype"])
124124
S = Dop.tosparse()
125-
assert_array_equal(S.A, D)
125+
assert_array_equal(S.toarray(), D)
126126

127127

128128
@pytest.mark.parametrize("par", [(par1), (par2), (par1j)])

0 commit comments

Comments
 (0)