Skip to content

Commit

Permalink
Fix test infra (#3337)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyunhao116 authored and asvetlov committed Oct 10, 2018
1 parent 9483209 commit dc7eab9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGES/3337.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix tests/test_connector.py typo and tests/autobahn/server.py duplicate loop def.
2 changes: 0 additions & 2 deletions tests/autobahn/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ async def finish(app, srv, handler):
loop = asyncio.get_event_loop()
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s %(levelname)s %(message)s')

loop = asyncio.get_event_loop()
app, srv, handler = loop.run_until_complete(main(loop))
try:
loop.run_forever()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def test_del_with_closed_loop(loop) -> None:
assert exc_handler.called


def test_del_empty_conector(loop) -> None:
def test_del_empty_connector(loop) -> None:
conn = aiohttp.BaseConnector(loop=loop)

exc_handler = mock.Mock()
Expand Down

0 comments on commit dc7eab9

Please sign in to comment.