mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +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
|
@ -1160,9 +1160,7 @@ class BaseEventLoopWithSelectorTests(test_utils.TestCase):
|
|||
@unittest.skipUnless(socket_helper.IPV6_ENABLED, 'no IPv6 support')
|
||||
def test_create_server_ipv6(self):
|
||||
async def main():
|
||||
with self.assertWarns(DeprecationWarning):
|
||||
srv = await asyncio.start_server(
|
||||
lambda: None, '::1', 0, loop=self.loop)
|
||||
srv = await asyncio.start_server(lambda: None, '::1', 0)
|
||||
try:
|
||||
self.assertGreater(len(srv.sockets), 0)
|
||||
finally:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue