Skip to content

Commit 5e2c1b8

Browse files
committed
correct the expected error type in mateqn_test.py
1 parent 843f559 commit 5e2c1b8

1 file changed

Lines changed: 24 additions & 24 deletions

File tree

control/tests/mateqn_test.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -265,25 +265,25 @@ def test_raise(self):
265265
Efq = array([[2, 1, 0], [1, 2, 0]])
266266

267267
for cdlyap in [lyap, dlyap]:
268-
with pytest.raises(ControlArgument):
268+
with pytest.raises(ValueError):
269269
cdlyap(Afq, Q)
270-
with pytest.raises(ControlArgument):
270+
with pytest.raises(ValueError):
271271
cdlyap(A, Qfq)
272-
with pytest.raises(ControlArgument):
272+
with pytest.raises(ValueError):
273273
cdlyap(A, Qfs)
274-
with pytest.raises(ControlArgument):
274+
with pytest.raises(ValueError):
275275
cdlyap(Afq, Q, C)
276-
with pytest.raises(ControlArgument):
276+
with pytest.raises(ValueError):
277277
cdlyap(A, Qfq, C)
278-
with pytest.raises(ControlArgument):
278+
with pytest.raises(ValueError):
279279
cdlyap(A, Q, Cfd)
280-
with pytest.raises(ControlArgument):
280+
with pytest.raises(ValueError):
281281
cdlyap(A, Qfq, None, E)
282-
with pytest.raises(ControlArgument):
282+
with pytest.raises(ValueError):
283283
cdlyap(A, Q, None, Efq)
284-
with pytest.raises(ControlArgument):
284+
with pytest.raises(ValueError):
285285
cdlyap(A, Qfs, None, E)
286-
with pytest.raises(ControlArgument):
286+
with pytest.raises(ValueError):
287287
cdlyap(A, Q, C, E)
288288

289289
B = array([[1, 0], [0, 1]])
@@ -296,34 +296,34 @@ def test_raise(self):
296296
E = array([[2, 1], [1, 2]])
297297
Ef = array([[2, 1], [1, 2], [1, 2]])
298298

299-
with pytest.raises(ControlArgument):
299+
with pytest.raises(ValueError):
300300
care(Afq, B, Q)
301-
with pytest.raises(ControlArgument):
301+
with pytest.raises(ValueError):
302302
care(A, B, Qfq)
303-
with pytest.raises(ControlArgument):
303+
with pytest.raises(ValueError):
304304
care(A, Bf, Q)
305-
with pytest.raises(ControlArgument):
305+
with pytest.raises(ValueError):
306306
care(1, B, 1)
307-
with pytest.raises(ControlArgument):
307+
with pytest.raises(ValueError):
308308
care(A, B, Qfs)
309309
with pytest.raises(ValueError):
310310
dare(A, B, Q, Rfs)
311311
for cdare in [care, dare]:
312-
with pytest.raises(ControlArgument):
312+
with pytest.raises(ValueError):
313313
cdare(Afq, B, Q, R, S, E)
314-
with pytest.raises(ControlArgument):
314+
with pytest.raises(ValueError):
315315
cdare(A, B, Qfq, R, S, E)
316-
with pytest.raises(ControlArgument):
316+
with pytest.raises(ValueError):
317317
cdare(A, Bf, Q, R, S, E)
318-
with pytest.raises(ControlArgument):
318+
with pytest.raises(ValueError):
319319
cdare(A, B, Q, R, S, Ef)
320-
with pytest.raises(ControlArgument):
320+
with pytest.raises(ValueError):
321321
cdare(A, B, Q, Rfq, S, E)
322-
with pytest.raises(ControlArgument):
322+
with pytest.raises(ValueError):
323323
cdare(A, B, Q, R, Sf, E)
324-
with pytest.raises(ControlArgument):
324+
with pytest.raises(ValueError):
325325
cdare(A, B, Qfs, R, S, E)
326-
with pytest.raises(ControlArgument):
326+
with pytest.raises(ValueError):
327327
cdare(A, B, Q, Rfs, S, E)
328-
with pytest.raises(ControlArgument):
328+
with pytest.raises(ValueError):
329329
cdare(A, B, Q, R, S)

0 commit comments

Comments
 (0)