mirror of
https://github.com/python/cpython.git
synced 2025-08-29 05:05:03 +00:00
bpo-42392: Remove loop parameter from asyncio.streams (GH-23517)
This commit is contained in:
parent
87f7ab5359
commit
f533cb80cb
6 changed files with 56 additions and 109 deletions
|
@ -45,9 +45,8 @@ class BaseStartServer(func_tests.FunctionalTestCaseMixin):
|
|||
async with srv:
|
||||
await srv.serve_forever()
|
||||
|
||||
with self.assertWarns(DeprecationWarning):
|
||||
srv = self.loop.run_until_complete(asyncio.start_server(
|
||||
serve, socket_helper.HOSTv4, 0, loop=self.loop, start_serving=False))
|
||||
srv = self.loop.run_until_complete(asyncio.start_server(
|
||||
serve, socket_helper.HOSTv4, 0, start_serving=False))
|
||||
|
||||
self.assertFalse(srv.is_serving())
|
||||
|
||||
|
@ -102,9 +101,8 @@ class SelectorStartServerTests(BaseStartServer, unittest.TestCase):
|
|||
await srv.serve_forever()
|
||||
|
||||
with test_utils.unix_socket_path() as addr:
|
||||
with self.assertWarns(DeprecationWarning):
|
||||
srv = self.loop.run_until_complete(asyncio.start_unix_server(
|
||||
serve, addr, loop=self.loop, start_serving=False))
|
||||
srv = self.loop.run_until_complete(asyncio.start_unix_server(
|
||||
serve, addr, start_serving=False))
|
||||
|
||||
main_task = self.loop.create_task(main(srv))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue