Skip to content

Commit aed449d

Browse files
committed
remove unused (and sometimes incorrect) creation of test suites and run_all.py
1 parent 1881f9d commit aed449d

31 files changed

+3
-163
lines changed

control/tests/bdalg_test.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python
22
#
3-
# bdalg_test.py - test suit for block diagram algebra
3+
# bdalg_test.py - test suite for block diagram algebra
44
# RMM, 30 Mar 2011 (based on TestBDAlg from v0.4a)
55

66
import unittest
@@ -271,9 +271,5 @@ def test_feedback_args(self):
271271
self.assertTrue(isinstance(sys, ctrl.FRD))
272272

273273

274-
def suite():
275-
return unittest.TestLoader().loadTestsFromTestCase(TestFeedback)
276-
277-
278274
if __name__ == "__main__":
279275
unittest.main()

control/tests/canonical_test.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,6 @@ def test_similarity(self):
288288
np.testing.assert_array_almost_equal(mimo_new.C, mimo_ini.C)
289289
np.testing.assert_array_almost_equal(mimo_new.D, mimo_ini.D)
290290

291-
def suite():
292-
return unittest.TestLoader().loadTestsFromTestCase(TestFeedback)
293-
294291

295292
if __name__ == "__main__":
296293
unittest.main()

control/tests/config_test.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,6 @@ def tearDown(self):
218218
# Reset the configuration defaults
219219
ct.config.reset_defaults()
220220

221-
def suite():
222-
return unittest.TestLoader().loadTestsFromTestCase(TestTimeresp)
223-
224221

225222
if __name__ == '__main__':
226223
unittest.main()

control/tests/convert_test.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,6 @@ def test_tf2ss_robustness(self):
268268
np.testing.assert_array_almost_equal(np.sort(sys2tf.pole()),
269269
np.sort(sys2ss.pole()))
270270

271-
def suite():
272-
return unittest.TestLoader().loadTestsFromTestCase(TestConvert)
273271

274272
if __name__ == "__main__":
275273
unittest.main()

control/tests/ctrlutil_test.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,5 @@ def test_mag2db_array(self):
5858
np.testing.assert_array_almost_equal(db_array, self.db)
5959

6060

61-
def test_suite():
62-
return unittest.TestLoader().loadTestsFromTestCase(TestUtils)
63-
6461
if __name__ == "__main__":
6562
unittest.main()

control/tests/discrete_test.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -384,9 +384,6 @@ def test_discrete_bode(self):
384384
np.testing.assert_array_almost_equal(mag_out, np.absolute(H_z))
385385
np.testing.assert_array_almost_equal(phase_out, np.angle(H_z))
386386

387-
def suite():
388-
return unittest.TestLoader().loadTestsFromTestCase(TestDiscrete)
389-
390387

391388
if __name__ == "__main__":
392389
unittest.main()

control/tests/flatsys_test.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,5 @@ def tearDown(self):
127127
ct.reset_defaults()
128128

129129

130-
def suite():
131-
return unittest.TestLoader().loadTestsFromTestCase(TestFlatSys)
132-
133-
134130
if __name__ == '__main__':
135131
unittest.main()

control/tests/frd_test.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,5 @@ def test_evalfr_deprecated(self):
415415
self.assertRaises(PendingDeprecationWarning, frd_tf.evalfr, 1.)
416416

417417

418-
def suite():
419-
return unittest.TestLoader().loadTestsFromTestCase(TestFRD)
420-
421418
if __name__ == "__main__":
422419
unittest.main()

control/tests/freqresp_test.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,5 @@ def test_options(self):
235235
ctrl.config.reset_defaults()
236236

237237

238-
def suite():
239-
return unittest.TestLoader().loadTestsFromTestCase(TestFreqresp)
240-
241238
if __name__ == '__main__':
242239
unittest.main()

control/tests/iosys_test.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -911,10 +911,6 @@ def test_duplicates(self):
911911
self.assertEqual(len(warnval), 0)
912912

913913

914-
def suite():
915-
return unittest.TestLoader().loadTestsFromTestCase(TestTimeresp)
916-
917-
918914
# Predator prey dynamics
919915
def predprey(t, x, u, params={}):
920916
r = params.get('r', 2)

0 commit comments

Comments
 (0)