8000 Clean up pytest, get rid of unittest · python-control/Slycot@bd9b8b2 · GitHub
[go: up one dir, main page]

Skip to content

Commit bd9b8b2

Browse files
committed
Clean up pytest, get rid of unittest
1 parent cda6d0e commit bd9b8b2

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

slycot/tests/test_sb10yd.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
import unittest
21
from slycot import synthesis
32
import numpy as np
43
from scipy import signal
54

6-
class test_sb10yd(unittest.TestCase):
5+
class Test_sb10yd():
76

87
def test_sb10yd_cont_exec(self):
98
"""A simple execution test.
@@ -137,7 +136,4 @@ def test_sb10yd_disc_allclose(self):
137136
# Compare given and identified frequency response up to some toleration.
138137
# absolute(a-b) <= atol + rtol*abolute(b), element-wise true
139138
# absolute(a-b) or absolute(b-a) <= atol, for rtol=0 element-wise true
140-
np.testing.assert_allclose(abs(H_id),abs(H),rtol=0,atol=1.0)
141-
142-
if __name__ == "__main__":
143-
unittest.main()
139+
np.testing.assert_allclose(abs(H_id),abs(H),rtol=0,atol=1.0)

0 commit comments

Comments
 (0)
0