1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-09 01:03:24 +00:00

Fix aiohttp stub to support version >= 3.1.0

This commit is contained in:
Luiz Menezes
2018-05-01 18:20:37 -03:00
parent f890709a20
commit 26be756f47
4 changed files with 21 additions and 23 deletions

View File

@@ -7,12 +7,11 @@ import contextlib # noqa: E402
import pytest # noqa: E402
import vcr # noqa: E402
from .aiohttp_utils import aiohttp_request # noqa: E402
try:
from .async_def import test_http # noqa: F401
from .aiohttp_utils import aiohttp_request # noqa: E402
except SyntaxError:
pass
pytest.skip('python<3.5', allow_module_level=True)
def run_in_loop(fn):