Skip to content

Commit

Permalink
Fix #1947: don't raise DeprecationWarning inside on_startup() handler…
Browse files Browse the repository at this point in the history
… for test_utils
  • Loading branch information
asvetlov committed Jun 14, 2017
1 parent acc0e26 commit ed28add
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ Changes

- Use CIMultiDict for ClientRequest.skip_auto_headers #1970

-
- Fix wrong startup sequence: test server doesn't raise
`DeprecationWarning` now #1947

-

Expand Down
2 changes: 1 addition & 1 deletion aiohttp/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ def __init__(self, app, *,

@asyncio.coroutine
def _make_factory(self, **kwargs):
self.handler = self.app.make_handler(loop=self._loop, **kwargs)
yield from self.app.startup()
self.handler = self.app.make_handler(loop=self._loop, **kwargs)
return self.handler

@asyncio.coroutine
Expand Down

0 comments on commit ed28add

Please sign in to comment.