Skip to content

Commit 16f95dd

Browse files
committed
Bump to 0.5.0
1 parent ea263b0 commit 16f95dd

4 files changed

Lines changed: 17 additions & 6 deletions

File tree

CHANGES.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Changes
2+
=======
3+
4+
0.5.0 (2018-02-14)
5+
------------------
6+
7+
- Fix compatibility with aiohttp 3.0
8+
9+
10+
0.4.0 (2017-12-05)
11+
------------------
12+
13+
- First public release

aioelasticsearch/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from .transport import AIOHttpTransport # noqa # isort:skip
1111

1212

13-
__version__ = '0.4.0'
13+
__version__ = '0.5.0'
1414

1515

1616
class Elasticsearch(_Elasticsearch):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def read(*parts):
3030
long_description=read('README.rst'),
3131
install_requires=[
3232
'elasticsearch>=6.0.0,<7.0.0',
33-
'aiohttp>=2.3.7,<3.0.0',
33+
'aiohttp>=2.3.7,<4.0.0',
3434
],
3535
python_requires='>=3.5.0',
3636
packages=['aioelasticsearch'],

tests/test_connection.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import aiohttp
55
import pytest
6+
from aiohttp.test_utils import make_mocked_coro
67
from elasticsearch import ConnectionTimeout
78

89
from aioelasticsearch.connection import (
@@ -75,10 +76,7 @@ async def test_perform_request_ssl_error(auto_close, loop):
7576
]:
7677
session = aiohttp.ClientSession(loop=loop)
7778

78-
@asyncio.coroutine
79-
def request(*args, **kwargs):
80-
raise exc
81-
session._request = request
79+
session._request = make_mocked_coro(raise_exception=exc)
8280

8381
conn = auto_close(AIOHttpConnection(session=session, loop=loop,
8482
use_ssl=True))

0 commit comments

Comments
 (0)