mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-09 09:13:23 +00:00
@@ -43,6 +43,8 @@ matrix:
|
|||||||
- env: TOX_SUFFIX="boto3"
|
- env: TOX_SUFFIX="boto3"
|
||||||
- env: TOX_SUFFIX="aiohttp"
|
- env: TOX_SUFFIX="aiohttp"
|
||||||
python: "pypy3.5-5.9.0"
|
python: "pypy3.5-5.9.0"
|
||||||
|
- env: TOX_SUFFIX="aiohttp"
|
||||||
|
python: 3.4
|
||||||
exclude:
|
exclude:
|
||||||
# Only run flakes on a single Python 2.x and a single 3.x
|
# Only run flakes on a single Python 2.x and a single 3.x
|
||||||
- env: TOX_SUFFIX="flakes"
|
- env: TOX_SUFFIX="flakes"
|
||||||
@@ -59,6 +61,7 @@ matrix:
|
|||||||
python: pypy
|
python: pypy
|
||||||
python:
|
python:
|
||||||
- 2.7
|
- 2.7
|
||||||
|
- 3.4
|
||||||
- 3.5
|
- 3.5
|
||||||
- 3.6
|
- 3.6
|
||||||
- pypy
|
- pypy
|
||||||
|
|||||||
2
tox.ini
2
tox.ini
@@ -1,5 +1,5 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist = {py27,py35,py36,py37,pypy}-{flakes,requests27,httplib2,urllib3121,tornado4,boto3,aiohttp}
|
envlist = {py27,py34,py35,py36,py37,pypy}-{flakes,requests27,httplib2,urllib3121,tornado4,boto3,aiohttp}
|
||||||
|
|
||||||
[testenv:flakes]
|
[testenv:flakes]
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
|
|||||||
@@ -16,11 +16,13 @@ from .util import partition_dict
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
from asyncio import iscoroutinefunction
|
from asyncio import iscoroutinefunction
|
||||||
from ._handle_coroutine import handle_coroutine
|
|
||||||
except ImportError:
|
except ImportError:
|
||||||
def iscoroutinefunction(*args, **kwargs):
|
def iscoroutinefunction(*args, **kwargs):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
if sys.version_info[:2] >= (3, 5):
|
||||||
|
from ._handle_coroutine import handle_coroutine
|
||||||
|
else:
|
||||||
def handle_coroutine(*args, **kwags):
|
def handle_coroutine(*args, **kwags):
|
||||||
raise NotImplementedError('Not implemented on Python 2')
|
raise NotImplementedError('Not implemented on Python 2')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user