Skip to content

Commit

Permalink
confirm this fails
Browse files Browse the repository at this point in the history
  • Loading branch information
EricCousineau-TRI committed Nov 11, 2023
1 parent 2ac4890 commit af945db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bindings/pydrake/solvers/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ drake_py_unittest(
":solvers",
"//bindings/pydrake:forwarddiff_py",
"//bindings/pydrake/common/test_utilities",
"//bindings/pydrake/common/test_utilities:scipy_stub_py",
# "//bindings/pydrake/common/test_utilities:scipy_stub_py",
"//bindings/pydrake/math",
],
)
Expand Down
8 changes: 4 additions & 4 deletions bindings/pydrake/solvers/test/mathematicalprogram_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -802,10 +802,6 @@ def test_linear_constraints(self):
lb = [0., 0.]
ub = [1., 1.]

A_sparse = scipy.sparse.csc_matrix(
(np.array([2, 1, 3]), np.array([0, 1, 0]),
np.array([0, 2, 2, 3])), shape=(2, 2))

prog.AddBoundingBoxConstraint(lb, ub, x)
prog.AddBoundingBoxConstraint(0., 1., x[0])
prog.AddBoundingBoxConstraint(0., 1., x)
Expand All @@ -814,6 +810,10 @@ def test_linear_constraints(self):
# Ensure that the dense version of the binding has been called.
self.assertTrue(dense1.evaluator().is_dense_A_constructed())

A_sparse = scipy.sparse.csc_matrix(
(np.array([2, 1, 3]), np.array([0, 1, 0]),
np.array([0, 2, 2, 3])), shape=(2, 2))

sparse1 = prog.AddLinearConstraint(A=A_sparse,
lb=np.zeros(2),
ub=np.ones(2),
Expand Down

0 comments on commit af945db

Please sign in to comment.