Skip to content

Commit

Permalink
Fixed None timeout support #1720
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Mar 16, 2017
1 parent aec99fa commit e3f6004
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ CHANGES
2.0.0 (2017-03-xx)
------------------

- Fixed None timeout support #1720


`2.0.0rc1` (2017-03-15)
-----------------------
Expand Down
16 changes: 16 additions & 0 deletions tests/test_client_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,22 @@ def handler(request):
yield from resp.read()


@asyncio.coroutine
def test_timeout_none(loop, test_client, mocker):
@asyncio.coroutine
def handler(request):
resp = web.StreamResponse()
yield from resp.prepare(request)
return resp

app = web.Application(loop=loop)
app.router.add_route('GET', '/', handler)
client = yield from test_client(app)

resp = yield from client.get('/', timeout=None)
assert resp.status == 200


@asyncio.coroutine
def test_readline_error_on_conn_close(loop, test_client):

Expand Down

0 comments on commit e3f6004

Please sign in to comment.