diff --git a/CHANGES/3337.bugfix b/CHANGES/3337.bugfix new file mode 100644 index 00000000000..b048eadc0a6 --- /dev/null +++ b/CHANGES/3337.bugfix @@ -0,0 +1 @@ +Fix tests/test_connector.py typo and tests/autobahn/server.py duplicate loop def. diff --git a/tests/autobahn/server.py b/tests/autobahn/server.py index 0a1a0e36505..693dcd017fe 100644 --- a/tests/autobahn/server.py +++ b/tests/autobahn/server.py @@ -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() diff --git a/tests/test_connector.py b/tests/test_connector.py index 353240f2c33..33af56e02dd 100644 --- a/tests/test_connector.py +++ b/tests/test_connector.py @@ -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()