Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
mark slycot needing tests
  • Loading branch information
bnavigator committed Feb 15, 2026
commit a7a98a077d3a56bb116a79917a98a9319bf9bc0d
8 changes: 4 additions & 4 deletions control/tests/sysnorm_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import pytest


@pytest.mark.parametrize("method", ["slycot", "scipy", None])
@pytest.mark.parametrize("method", [pytest.param("slycot", marks=pytest.mark.slycot), "scipy", None])
def test_norm_1st_order_stable_system(method):
"""First-order stable continuous-time system"""
s = ct.tf('s')
Expand All @@ -25,7 +25,7 @@ def test_norm_1st_order_stable_system(method):
assert np.allclose(ct.norm(Gd1, p=2, method=method), 0.223513699524858) # Comparison to norm computed in MATLAB


@pytest.mark.parametrize("method", ["slycot", "scipy", None])
@pytest.mark.parametrize("method", [pytest.param("slycot", marks=pytest.mark.slycot), "scipy", None])
def test_norm_1st_order_unstable_system(method):
"""First-order unstable continuous-time system"""
s = ct.tf('s')
Expand All @@ -40,7 +40,7 @@ def test_norm_1st_order_unstable_system(method):
with pytest.warns(UserWarning, match="System is unstable!"):
assert ct.norm(Gd2, p=2, method=method) == float('inf') # Comparison to norm computed in MATLAB

@pytest.mark.parametrize("method", ["slycot", "scipy", None])
@pytest.mark.parametrize("method", [pytest.param("slycot", marks=pytest.mark.slycot), "scipy", None])
def test_norm_2nd_order_system_imag_poles(method):
"""Second-order continuous-time system with poles on imaginary axis"""
s = ct.tf('s')
Expand All @@ -57,7 +57,7 @@ def test_norm_2nd_order_system_imag_poles(method):
with pytest.warns(UserWarning, match="Poles close to, or on, the complex unit circle."):
assert ct.norm(Gd3, p=2, method=method) == float('inf') # Comparison to norm computed in MATLAB

@pytest.mark.parametrize("method", ["slycot", "scipy", None])
@pytest.mark.parametrize("method", [pytest.param("slycot", marks=pytest.mark.slycot), "scipy", None])
def test_norm_3rd_order_mimo_system(method):
"""Third-order stable MIMO continuous-time system"""
A = np.array([[-1.017041847539126, -0.224182952826418, 0.042538079149249],
Expand Down