mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +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 @@ async def main(srv): | |||
|             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 @@ async def main(srv): | |||
|                 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
	
	 Yurii Karabas
						Yurii Karabas