From e9518383da031d03a3c70f1a670bcf522cfa4d57 Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Mon, 9 Jun 2014 19:31:52 +0300 Subject: [PATCH] Fix gaiohttp tests for Python 2.5 --- tests/test_009-gaiohttp.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/tests/test_009-gaiohttp.py b/tests/test_009-gaiohttp.py index d3a37734..843c6cf0 100644 --- a/tests/test_009-gaiohttp.py +++ b/tests/test_009-gaiohttp.py @@ -3,17 +3,9 @@ # This file is part of gunicorn released under the MIT license. # See the NOTICE for more information. -import t -import os -import sys import unittest -if sys.version_info[0] < 3: - raise unittest.SkipTest("gaiohttp requires Python 3.3+") - -try: - import aiohttp -except ImportError: - raise unittest.SkipTest("gaiohttp requires aiohttp") +import pytest +aiohttp = pytest.importorskip("aiohttp") from aiohttp.wsgi import WSGIServerHttpProtocol