From 287ea4b06e0354f505267273122b18999b34f0b4 Mon Sep 17 00:00:00 2001 From: Luiz Menezes Date: Sat, 22 Sep 2018 17:29:08 -0300 Subject: [PATCH 1/2] Fix cassette module to work with py34 --- vcr/cassette.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vcr/cassette.py b/vcr/cassette.py index 3b6f54e..5683ddf 100644 --- a/vcr/cassette.py +++ b/vcr/cassette.py @@ -16,11 +16,13 @@ from .util import partition_dict try: from asyncio import iscoroutinefunction - from ._handle_coroutine import handle_coroutine except ImportError: def iscoroutinefunction(*args, **kwargs): return False +if sys.version_info[:2] >= (3, 5): + from ._handle_coroutine import handle_coroutine +else: def handle_coroutine(*args, **kwags): raise NotImplementedError('Not implemented on Python 2') From f2a79d3fcca4d3c069c5f83f633977e333cb9433 Mon Sep 17 00:00:00 2001 From: Luiz Menezes Date: Sat, 22 Sep 2018 17:30:21 -0300 Subject: [PATCH 2/2] Add py34 to CI builds --- .travis.yml | 3 +++ tox.ini | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6759546..17a2546 100644 --- a/.travis.yml +++ b/.travis.yml @@ -43,6 +43,8 @@ matrix: - env: TOX_SUFFIX="boto3" - env: TOX_SUFFIX="aiohttp" python: "pypy3.5-5.9.0" + - env: TOX_SUFFIX="aiohttp" + python: 3.4 exclude: # Only run flakes on a single Python 2.x and a single 3.x - env: TOX_SUFFIX="flakes" @@ -59,6 +61,7 @@ matrix: python: pypy python: - 2.7 +- 3.4 - 3.5 - 3.6 - pypy diff --git a/tox.ini b/tox.ini index 865cd62..bd99f42 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [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] skipsdist = True