Skip to content

Commit

Permalink
Clean up pytest, get rid of unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
KybernetikJo committed Aug 25, 2023
1 parent cda6d0e commit bd9b8b2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions slycot/tests/test_sb10yd.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import unittest
from slycot import synthesis
import numpy as np
from scipy import signal

class test_sb10yd(unittest.TestCase):
class Test_sb10yd():

def test_sb10yd_cont_exec(self):
"""A simple execution test.
Expand Down Expand Up @@ -137,7 +136,4 @@ def test_sb10yd_disc_allclose(self):
# Compare given and identified frequency response up to some toleration.
# absolute(a-b) <= atol + rtol*abolute(b), element-wise true
# absolute(a-b) or absolute(b-a) <= atol, for rtol=0 element-wise true
np.testing.assert_allclose(abs(H_id),abs(H),rtol=0,atol=1.0)

if __name__ == "__main__":
unittest.main()
np.testing.assert_allclose(abs(H_id),abs(H),rtol=0,atol=1.0)

0 comments on commit bd9b8b2

Please sign in to comment.