Skip to content

Commit cda6d0e

Browse files
bnavigatorKybernetikJo
authored andcommitted
isort
1 parent 072d118 commit cda6d0e

17 files changed

Lines changed: 40 additions & 35 deletions

slycot/tests/test_ab01.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
from numpy import array
88
from numpy.testing import assert_allclose, assert_equal
9-
109
from scipy.linalg.lapack import dorgqr
1110

1211
from slycot.analysis import ab01nd

slycot/tests/test_ab04md.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
from slycot import analysis
21
import numpy as np
3-
42
from numpy.testing import assert_allclose
53

4+
from slycot import analysis
5+
66

77
class Test_ab04md:
88
"""Test ab04md.

slycot/tests/test_ab08n.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# ===================================================
22
# ab08n* tests
33

4-
from slycot import analysis
54
import numpy as np
6-
5+
from numpy.testing import assert_allclose, assert_equal
76
from scipy.linalg import eig
8-
from numpy.testing import assert_equal, assert_allclose
7+
8+
from slycot import analysis
99

1010

1111
class Test_ab08nX:

slycot/tests/test_ab13bd.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# ===================================================
22
# ab08n* tests
33

4-
from slycot import analysis
54
import numpy as np
5+
from numpy.testing import assert_allclose, assert_array_equal, assert_equal
6+
from scipy import linalg, signal
7+
8+
from slycot import analysis
69

7-
from scipy import linalg
8-
from scipy import signal
9-
from numpy.testing import assert_equal, assert_allclose, assert_array_equal
1010

1111
class Test_ab13bd:
1212
""" Test regular pencil construction ab08nX with input parameters

slycot/tests/test_ab13md.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import numpy as np
2-
from numpy.testing import assert_allclose, assert_array_less
3-
42
import pytest
3+
from numpy.testing import assert_allclose, assert_array_less
54

65
from slycot import ab13md
76

slycot/tests/test_ag08bd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
"""Verify ag08bd with input parameters according to example in documentation."""
22

3-
from slycot import analysis
43
import numpy as np
5-
64
from numpy.testing import assert_almost_equal, assert_equal
75

6+
from slycot import analysis
7+
88
# test1 input parameters
99

1010
test1_l = 9

slycot/tests/test_analysis.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
# repagh <rene.vanpaassen@gmail.com, May 2020
44

55
import pytest
6-
from .test_exceptions import assert_docstring_parse
6+
77
from slycot import analysis
88
from slycot.exceptions import SlycotArithmeticError, SlycotResultWarning
99

10+
from .test_exceptions import assert_docstring_parse
11+
1012

1113
@pytest.mark.parametrize(
1214
'fun, exception_class, erange, checkvars',

slycot/tests/test_examples.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"""
77

88
from inspect import getmembers, isfunction
9+
910
import pytest
1011

1112
from slycot import examples

slycot/tests/test_exceptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424

2525
import pytest
2626

27-
from slycot.exceptions import raise_if_slycot_error, \
28-
SlycotError, SlycotWarning, SlycotParameterError
2927
from slycot import _wrapper
28+
from slycot.exceptions import (SlycotError, SlycotParameterError,
29+
SlycotWarning, raise_if_slycot_error)
3030

3131

3232
def assert_docstring_parse(docstring, exception_class, erange, checkvars={}):

slycot/tests/test_mc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
# test_mc.py - test suite for polynomial and rational function manipulation
33
# bnavigator <code@bnavigator.de>, Aug 2019
44

5-
import pytest
65
import re
76

7+
import pytest
8+
89
from slycot import mc01td
910
from slycot.exceptions import SlycotResultWarning
1011

0 commit comments

Comments
 (0)