From 70947bb96af38cfa59f568aa1e92fbd3f19cb450 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Fri, 14 Apr 2017 05:21:39 +0300 Subject: [PATCH] Skip test if WSGIServerHttpProtocol isn't available --- tests/test_gaiohttp.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_gaiohttp.py b/tests/test_gaiohttp.py index 54405561..6a08c413 100644 --- a/tests/test_gaiohttp.py +++ b/tests/test_gaiohttp.py @@ -5,10 +5,9 @@ import unittest import pytest + aiohttp = pytest.importorskip("aiohttp") - - -from aiohttp.wsgi import WSGIServerHttpProtocol +WSGIServerHttpProtocol = pytest.importorskip("aiohttp.wsgi.WSGIServerHttpProtocol") import asyncio from gunicorn.workers import gaiohttp