Skip to content

Commit

Permalink
Disable access logging for server tests
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Jan 26, 2016
1 parent d7b5a66 commit 87685f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions aiohttp/client_reqrep.py
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,8 @@ def close(self, force=True):

@asyncio.coroutine
def release(self):
if self._closed:
return
try:
content = self.content
if content is not None and not content.at_eof():
Expand Down
3 changes: 2 additions & 1 deletion tests/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ def make_srv(loop):

def maker(**kwargs):
nonlocal srv
srv = server.ServerHttpProtocol(loop=loop, **kwargs)
srv = server.ServerHttpProtocol(loop=loop, access_log=None,
**kwargs)
return srv

yield maker
Expand Down

0 comments on commit 87685f0

Please sign in to comment.