Skip to content

Commit f4d2a00

Browse files
committed
dev: running isort over everything
1 parent 80d52c2 commit f4d2a00

File tree

14 files changed

+31
-20
lines changed

14 files changed

+31
-20
lines changed

alt_pytest_asyncio/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""pytest-cov: avoid already-imported warning: PYTEST_DONT_REWRITE."""
2-
from alt_pytest_asyncio.version import VERSION
3-
42
import pytest
53

4+
from alt_pytest_asyncio.version import VERSION
5+
66

77
@pytest.hookimpl
88
def pytest_addoption(parser):

alt_pytest_asyncio/async_converters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
hacks with capturing errors inside run_until_complete rather than outside so
99
that you don't get asyncio internals in the errors.
1010
"""
11-
from functools import wraps
1211
import asyncio
1312
import inspect
1413
import sys
14+
from functools import wraps
1515

1616

1717
def convert_fixtures(fixturedef, request, node):

alt_pytest_asyncio/plugin.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
from alt_pytest_asyncio.async_converters import convert_fixtures, converted_async_test
2-
3-
from _pytest._code.code import ExceptionInfo
4-
from functools import partial, wraps
5-
from collections import defaultdict
6-
import inspect
71
import asyncio
8-
import pytest
2+
import inspect
93
import sys
4+
from collections import defaultdict
5+
from functools import partial, wraps
6+
7+
import pytest
8+
from _pytest._code.code import ExceptionInfo
9+
10+
from alt_pytest_asyncio.async_converters import convert_fixtures, converted_async_test
1011

1112

1213
class AltPytestAsyncioPlugin:

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from setuptools import find_packages, setup
2-
import runpy
31
import os
2+
import runpy
43

4+
from setuptools import find_packages, setup
55

66
VERSION = runpy.run_path(
77
os.path.join(os.path.dirname(__file__), "alt_pytest_asyncio", "version.py")

tests/conftest.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import asyncio
2-
import pytest
3-
import struct
42
import socket
3+
import struct
4+
5+
import pytest
56

67
pytest_plugins = ["pytester"]
78

tests/example_timeouts/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import asyncio
2+
23
import pytest
34

45

tests/example_timeouts/test_fails.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# coding: spec
22

33
import asyncio
4+
45
import pytest
56

67

tests/example_timeouts/test_fails_method_fixtures.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# coding: spec
22

33
import asyncio
4+
45
import pytest
56

67
describe "a class":

tests/example_timeouts/test_fails_tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# coding: spec
22

33
import asyncio
4+
45
import pytest
56

67
pytestmark = pytest.mark.async_timeout(0.01)

tests/example_timeouts/test_surrounding_pytestmark.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# coding: spec
22

33
import asyncio
4+
45
import pytest
56

67
pytestmark = pytest.mark.async_timeout(0.01)

0 commit comments

Comments
 (0)