From 7e695ff7bc2f5a6bce65a3e0f928e9858656c693 Mon Sep 17 00:00:00 2001 From: Luiz Menezes Date: Sun, 6 May 2018 19:16:56 -0300 Subject: [PATCH] Fix test aiohttp imports --- tests/integration/test_aiohttp.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/tests/integration/test_aiohttp.py b/tests/integration/test_aiohttp.py index a81e8e9..abd2cf2 100644 --- a/tests/integration/test_aiohttp.py +++ b/tests/integration/test_aiohttp.py @@ -1,17 +1,11 @@ +import contextlib + import pytest +asyncio = pytest.importorskip("asyncio") aiohttp = pytest.importorskip("aiohttp") -import asyncio # noqa: E402 -import contextlib # noqa: E402 - -import pytest # noqa: E402 import vcr # noqa: E402 - - -try: - from .aiohttp_utils import aiohttp_request # noqa: E402 -except SyntaxError: - pytest.skip('python<3.5', allow_module_level=True) +from .aiohttp_utils import aiohttp_request # noqa: E402 def run_in_loop(fn):