Skip to content

Commit 2a18331

Browse files
committed
Remove unused imports
Where imports were test fixtures, replaced with `@pytest.mark.usefixtures('nameoffixture')`.
1 parent d5156e5 commit 2a18331

17 files changed

Lines changed: 16 additions & 44 deletions

control/tests/bspline_test.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@
1111

1212
import numpy as np
1313
import pytest
14-
import scipy as sp
1514

1615
import control as ct
1716
import control.flatsys as fs
18-
import control.optimal as opt
1917

2018
def test_bspline_basis():
2119
Tf = 10

control/tests/conftest.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
"""conftest.py - pytest local plugins, fixtures, marks and functions."""
22

3-
import os
4-
from contextlib import contextmanager
5-
63
import matplotlib as mpl
74
import numpy as np
85
import pytest

control/tests/frd_test.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
RvP, 4 Oct 2012
44
"""
55

6-
import sys as pysys
7-
86
import numpy as np
97
import matplotlib.pyplot as plt
108
import pytest
@@ -13,7 +11,7 @@
1311
from control.statesp import StateSpace
1412
from control.xferfcn import TransferFunction
1513
from control.frdata import frd, _convert_to_frd, FrequencyResponseData
16-
from control import bdalg, evalfr, freqplot
14+
from control import bdalg, freqplot
1715
from control.tests.conftest import slycotonly
1816
from control.exception import pandas_check
1917

control/tests/freqplot_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import pytest
99

1010
import control as ct
11-
from control.tests.conftest import editsdefaults, slycotonly
1211

1312
pytestmark = pytest.mark.usefixtures("mplcleanup")
1413

control/tests/interconnect_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import pytest
1616

1717
import numpy as np
18-
import scipy as sp
1918
import math
2019

2120
import control as ct

control/tests/iosys_test.py

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

1919
import control as ct
2020
import control.flatsys as fs
21-
from control.tests.conftest import slycotonly
2221

2322
class TestIOSys:
2423

control/tests/kwargs_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import inspect
1414
import warnings
1515

16-
import matplotlib.pyplot as plt
1716
import pytest
1817

1918
import control

control/tests/lti_test.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
from control.lti import LTI, bandwidth, damp, dcgain, evalfr, poles, zeros
1313
from control.tests.conftest import slycotonly
1414

15-
from .conftest import editsdefaults
16-
1715

1816
class TestLTI:
1917
@pytest.mark.parametrize("fun, args", [

control/tests/matlab2_test.py

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

1717
from control.matlab import ss, step, impulse, initial, lsim, dcgain, ss2tf
1818
from control.timeresp import _check_convert_array
19-
from control.tests.conftest import slycotonly
2019

2120

2221
class TestControlMatlab:

control/tests/modelsimp_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
RMM, 30 Mar 2011 (based on TestModelSimp from v0.4a)
44
"""
55

6-
import math
76
import warnings
87

98
import numpy as np

0 commit comments

Comments
 (0)