44import pytest
55import scipy .linalg
66
7- from control .tests .conftest import slycotonly
8-
97from control import ss , tf , tf2ss
108from control .canonical import canonical_form , reachable_form , \
119 observable_form , modal_form , similarity_transform , bdschur
@@ -244,7 +242,7 @@ def block_diag_from_eig(eigvals):
244242 return scipy .linalg .block_diag (* blocks )
245243
246244
247- @slycotonly
245+ @pytest . mark . slycot
248246@pytest .mark .parametrize (
249247 "eigvals, condmax, blksizes" ,
250248 [
@@ -269,7 +267,7 @@ def test_bdschur_ref(eigvals, condmax, blksizes):
269267 np .testing .assert_array_almost_equal (solve (t , a ) @ t , b )
270268
271269
272- @slycotonly
270+ @pytest . mark . slycot
273271@pytest .mark .parametrize (
274272 "eigvals, sorted_blk_eigvals, sort" ,
275273 [
@@ -300,7 +298,7 @@ def test_bdschur_sort(eigvals, sorted_blk_eigvals, sort):
300298 blk_eigval .imag )
301299
302300
303- @slycotonly
301+ @pytest . mark . slycot
304302def test_bdschur_defective ():
305303 # the eigenvalues of this simple defective matrix cannot be separated
306304 # a previous version of the bdschur would fail on this
@@ -323,14 +321,14 @@ def test_bdschur_condmax_lt_1():
323321 bdschur (1 , condmax = np .nextafter (1 , 0 ))
324322
325323
326- @slycotonly
324+ @pytest . mark . slycot
327325def test_bdschur_invalid_sort ():
328326 # sort must be in ('continuous', 'discrete')
329327 with pytest .raises (ValueError ):
330328 bdschur (1 , sort = 'no-such-sort' )
331329
332330
333- @slycotonly
331+ @pytest . mark . slycot
334332@pytest .mark .parametrize (
335333 "A_true, B_true, C_true, D_true" ,
336334 [(np .diag ([4.0 , 3.0 , 2.0 , 1.0 ]), # order from largest to smallest
@@ -390,7 +388,7 @@ def test_modal_form(A_true, B_true, C_true, D_true):
390388 C @ np .linalg .matrix_power (A , i ) @ B )
391389
392390
393- @slycotonly
391+ @pytest . mark . slycot
394392@pytest .mark .parametrize (
395393 "condmax, len_blksizes" ,
396394 [(1.1 , 1 ),
@@ -409,7 +407,7 @@ def test_modal_form_condmax(condmax, len_blksizes):
409407 np .testing .assert_array_almost_equal (zsys .D , xsys .D )
410408
411409
412- @slycotonly
410+ @pytest . mark . slycot
413411@pytest .mark .parametrize (
414412 "sys_type" ,
415413 ['continuous' ,
0 commit comments