mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-10 09:35:34 +00:00
Fix test aiohttp imports
This commit is contained in:
@@ -1,17 +1,11 @@
|
|||||||
|
import contextlib
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
asyncio = pytest.importorskip("asyncio")
|
||||||
aiohttp = pytest.importorskip("aiohttp")
|
aiohttp = pytest.importorskip("aiohttp")
|
||||||
|
|
||||||
import asyncio # noqa: E402
|
|
||||||
import contextlib # noqa: E402
|
|
||||||
|
|
||||||
import pytest # noqa: E402
|
|
||||||
import vcr # noqa: E402
|
import vcr # noqa: E402
|
||||||
|
|
||||||
|
|
||||||
try:
|
|
||||||
from .aiohttp_utils import aiohttp_request # noqa: E402
|
from .aiohttp_utils import aiohttp_request # noqa: E402
|
||||||
except SyntaxError:
|
|
||||||
pytest.skip('python<3.5', allow_module_level=True)
|
|
||||||
|
|
||||||
|
|
||||||
def run_in_loop(fn):
|
def run_in_loop(fn):
|
||||||
|
|||||||
Reference in New Issue
Block a user