Skip to content

Commit 9ca6abd

Browse files
committed
linters
Signed-off-by: Ivan Santiago Paunovic <[email protected]>
1 parent 6bf2065 commit 9ca6abd

File tree

1 file changed

+3
-5
lines changed
  • launch_testing/launch_testing/pytest

1 file changed

+3
-5
lines changed

launch_testing/launch_testing/pytest/plugin.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@
1313
# limitations under the License.
1414

1515
import asyncio
16+
from collections.abc import Sequence
1617
import functools
1718
import inspect
18-
import itertools
19-
from collections.abc import Sequence
20-
import warnings
2119

2220
from _pytest.outcomes import fail
2321
from _pytest.outcomes import skip
@@ -46,6 +44,7 @@ def transfer_markers(*args, **kwargs): # noqa
4644

4745
class LaunchTestWarning(pytest.PytestWarning):
4846
"""Raised in this plugin to warn users."""
47+
4948
pass
5049

5150

@@ -279,6 +278,7 @@ def is_same_launch_test_fixture(left_item, right_item):
279278
if lfn._pytestfixturefunction.scope == 'function':
280279
return False
281280
name = lfn.__name__
281+
282282
def get_fixture_params(item):
283283
if getattr(item, 'callspec', None) is None:
284284
return None
@@ -327,9 +327,7 @@ def enumerate_reversed(sequence):
327327
def pytest_pyfunc_call(pyfuncitem):
328328
"""Run launch_testing test coroutines and functions in an event loop."""
329329
if is_launch_test(pyfuncitem):
330-
args = {}
331330
func = pyfuncitem.obj
332-
spec = inspect.getfullargspec(func)
333331
shutdown_test = is_shutdown_test(pyfuncitem)
334332
fixture = get_launch_test_fixture(pyfuncitem)
335333
scope = fixture._pytestfixturefunction.scope

0 commit comments

Comments
 (0)