filter known FutureWarning's from unit tests
This commit is contained in:
parent
fb2086c29f
commit
a201504038
|
@ -83,6 +83,7 @@ class tsystems:
|
|||
|
||||
|
||||
@pytest.mark.usefixtures("fixedseed")
|
||||
@pytest.mark.filterwarnings("ignore::FutureWarning")
|
||||
class TestMatlab:
|
||||
"""Test matlab style functions"""
|
||||
|
||||
|
|
|
@ -48,6 +48,7 @@ class TestH2:
|
|||
np.testing.assert_array_almost_equal(k.D, [[0]])
|
||||
|
||||
|
||||
@pytest.mark.filterwarnings("ignore:connect:FutureWarning")
|
||||
class TestAugw:
|
||||
|
||||
# tolerance for system equality
|
||||
|
@ -324,6 +325,7 @@ class TestAugw:
|
|||
augw(g1by1, w3=g2by2)
|
||||
|
||||
|
||||
@pytest.mark.filterwarnings("ignore:connect:FutureWarning")
|
||||
class TestMixsyn:
|
||||
"""Test control.robust.mixsyn"""
|
||||
|
||||
|
|
|
@ -153,6 +153,7 @@ class TestSisotool:
|
|||
with pytest.warns(FutureWarning):
|
||||
sisotool(tsys, kvect=1.2)
|
||||
|
||||
@pytest.mark.filterwarnings("ignore:connect:FutureWarning")
|
||||
def test_sisotool_mimo(self, sys222, sys221):
|
||||
# a 2x2 should not raise an error:
|
||||
sisotool(sys222)
|
||||
|
@ -196,6 +197,7 @@ class TestPidDesigner:
|
|||
{'input_signal':'r', 'Kp0':0.01, 'derivative_in_feedback_path':True},
|
||||
{'input_signal':'d', 'Kp0':0.01, 'derivative_in_feedback_path':True},
|
||||
{'input_signal':'r', 'Kd0':0.01, 'derivative_in_feedback_path':True}])
|
||||
@pytest.mark.filterwarnings("ignore:connect:FutureWarning")
|
||||
def test_pid_designer_2(self, plant, kwargs):
|
||||
rootlocus_pid_designer(plant, **kwargs)
|
||||
|
||||
|
|
Loading…
Reference in New Issue