Skip to content

Commit cfe18ea

Browse files
committed
Add decorators to skip new tests for place_varga if slycot is not installed
1 parent 9a42fc0 commit cfe18ea

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

control/tests/statefbk_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ def testPlace_varga_continuous(self):
218218
P_placed.sort()
219219
np.testing.assert_array_almost_equal(P, P_placed)
220220

221+
@unittest.skipIf(not slycot_check(), "slycot not installed")
221222
def testPlace_varga_continuous_partial_eigs(self):
222223
"""
223224
Check that we are able to use the alpha parameter to only place
@@ -239,6 +240,7 @@ def testPlace_varga_continuous_partial_eigs(self):
239240
P_placed.sort()
240241
np.testing.assert_array_almost_equal(P_expected, P_placed)
241242

243+
@unittest.skipIf(not slycot_check(), "slycot not installed")
242244
def testPlace_varga_discrete(self):
243245
"""
244246
Check that we can place poles using DICO='D' (discrete time)
@@ -254,6 +256,7 @@ def testPlace_varga_discrete(self):
254256
P_placed.sort()
255257
np.testing.assert_array_almost_equal(P, P_placed)
256258

259+
@unittest.skipIf(not slycot_check(), "slycot not installed")
257260
def testPlace_varga_discrete_partial_eigs(self):
258261
""""
259262
Check that we can only assign a single eigenvalue in the discrete

0 commit comments

Comments
 (0)