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 5d7b798 commit f591c08Copy full SHA for f591c08
control/tests/optimal_test.py
@@ -381,17 +381,8 @@ def test_optimal_logging(capsys):
381
@pytest.mark.parametrize("fun, args, exception, match", [
382
[opt.quadratic_cost, (np.zeros((2, 3)), np.eye(2)), ValueError,
383
"Q matrix is the wrong shape"],
384
- [opt.quadratic_cost, (np.eye(2), 1), ValueError,
+ [opt.quadratic_cost, (np.eye(2), np.eye(2, 3)), ValueError,
385
"R matrix is the wrong shape"],
386
-])
387
-def test_constraint_constructor_errors(fun, args, exception, match):
388
- """Test various error conditions for constraint constructors"""
389
- sys = ct.ss2io(ct.rss(2, 2, 2))
390
- with pytest.raises(exception, match=match):
391
- fun(sys, *args)
392
-
393
394
-@pytest.mark.parametrize("fun, args, exception, match", [
395
[opt.input_poly_constraint, (np.zeros((2, 3)), [0, 0]), ValueError,
396
"polytope matrix must match number of inputs"],
397
[opt.output_poly_constraint, (np.zeros((2, 3)), [0, 0]), ValueError,
0 commit comments