mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Fix gaiohttp tests for Python 2.5
This commit is contained in:
parent
e1d97f1bea
commit
e9518383da
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user