Skip to content

Commit a201504

Browse files
committed
filter known FutureWarning's from unit tests
1 parent fb2086c commit a201504

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

control/tests/matlab_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ class tsystems:
8383

8484

8585
@pytest.mark.usefixtures("fixedseed")
86+
@pytest.mark.filterwarnings("ignore::FutureWarning")
8687
class TestMatlab:
8788
"""Test matlab style functions"""
8889

control/tests/robust_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def testH2syn(self):
4848
np.testing.assert_array_almost_equal(k.D, [[0]])
4949

5050

51+
@pytest.mark.filterwarnings("ignore:connect:FutureWarning")
5152
class TestAugw:
5253

5354
# tolerance for system equality
@@ -324,6 +325,7 @@ def testErrors(self):
324325
augw(g1by1, w3=g2by2)
325326

326327

328+
@pytest.mark.filterwarnings("ignore:connect:FutureWarning")
327329
class TestMixsyn:
328330
"""Test control.robust.mixsyn"""
329331

control/tests/sisotool_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ def test_sisotool_initial_gain(self, tsys):
153153
with pytest.warns(FutureWarning):
154154
sisotool(tsys, kvect=1.2)
155155

156+
@pytest.mark.filterwarnings("ignore:connect:FutureWarning")
156157
def test_sisotool_mimo(self, sys222, sys221):
157158
# a 2x2 should not raise an error:
158159
sisotool(sys222)
@@ -196,6 +197,7 @@ def test_pid_designer_1(self, plant, gain, sign, input_signal, Kp0, Ki0, Kd0, de
196197
{'input_signal':'r', 'Kp0':0.01, 'derivative_in_feedback_path':True},
197198
{'input_signal':'d', 'Kp0':0.01, 'derivative_in_feedback_path':True},
198199
{'input_signal':'r', 'Kd0':0.01, 'derivative_in_feedback_path':True}])
200+
@pytest.mark.filterwarnings("ignore:connect:FutureWarning")
199201
def test_pid_designer_2(self, plant, kwargs):
200202
rootlocus_pid_designer(plant, **kwargs)
201203

0 commit comments

Comments
 (0)