Skip to content

Commit

Permalink
aiohttp only supports python 3.5.3+
Browse files Browse the repository at this point in the history
  • Loading branch information
dtkav committed Jan 13, 2019
1 parent 782e605 commit 0a2d2bb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion connexion/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def _required_lib(exec_info, *args, **kwargs):
App = FlaskApp
Api = FlaskApi

if sys.version_info[0] >= 3: # pragma: no cover
if sys.version_info >= (3, 5, 3): # pragma: no cover
try:
from .apis.aiohttp_api import AioHttpApi
from .apps.aiohttp_app import AioHttpApp
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def initialize_options(self):
self.cov = None
self.pytest_args = ['--cov', 'connexion', '--cov-report', 'term-missing', '-v']

if sys.version_info[0] < 3:
if sys.version_info < (3, 5, 3):
self.pytest_args.append('--cov-config=py2-coveragerc')
self.pytest_args.append('--ignore=tests/aiohttp')
else:
Expand Down
9 changes: 0 additions & 9 deletions tests/aiohttp/test_aiohttp_reverse_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,6 @@
X_FORWARDED_PATH = "X-Forwarded-Path"


if sys.version_info < (3, 5):
skip_msg = "skipping aiohttp tests in Python {version}"
skip_msg = skip_msg.format(version=sys.version_info)
pytest.skip(
skip_msg,
allow_module_level=True
)


class XPathForwarded(XForwardedBase):

def __init__(self, num=1):
Expand Down

0 comments on commit 0a2d2bb

Please sign in to comment.