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.
|
# This file is part of gunicorn released under the MIT license.
|
||||||
# See the NOTICE for more information.
|
# See the NOTICE for more information.
|
||||||
|
|
||||||
import t
|
|
||||||
import os
|
|
||||||
import sys
|
|
||||||
import unittest
|
import unittest
|
||||||
if sys.version_info[0] < 3:
|
import pytest
|
||||||
raise unittest.SkipTest("gaiohttp requires Python 3.3+")
|
aiohttp = pytest.importorskip("aiohttp")
|
||||||
|
|
||||||
try:
|
|
||||||
import aiohttp
|
|
||||||
except ImportError:
|
|
||||||
raise unittest.SkipTest("gaiohttp requires aiohttp")
|
|
||||||
|
|
||||||
|
|
||||||
from aiohttp.wsgi import WSGIServerHttpProtocol
|
from aiohttp.wsgi import WSGIServerHttpProtocol
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user