Skip to content

Commit d2b9569

Browse files
committed
Do not use new scipy function to maintain compatibility with python 3.8
1 parent 943ad18 commit d2b9569

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_matrix_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pyoptinterface as poi
22
import numpy as np
3-
from scipy.sparse import eye_array
3+
from scipy.sparse import coo_array
44
from pytest import approx
55

66

@@ -12,7 +12,7 @@ def test_matrix_api(model_interface):
1212
A = np.eye(N)
1313
ub = 3.0
1414
lb = 1.0
15-
A_sparse = eye_array(N)
15+
A_sparse = coo_array(np.eye(N))
1616
model.add_m_linear_constraints(A, x, poi.Leq, ub)
1717
model.add_m_linear_constraints(A_sparse, x, poi.Geq, lb)
1818

0 commit comments

Comments
 (0)