mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	GH-100113: remove remaining yield from usage from asyncio tests  (#100114)
				
					
				
			This commit is contained in:
		
							parent
							
								
									286e3c76a9
								
							
						
					
					
						commit
						0448deac70
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -2092,8 +2092,8 @@ def test_cancel_gather_1(self): | |||
|         async def create(): | ||||
|             # The indirection fut->child_coro is needed since otherwise the | ||||
|             # gathering task is done at the same time as the child future | ||||
|             def child_coro(): | ||||
|                 return (yield from fut) | ||||
|             async def child_coro(): | ||||
|                 return await fut | ||||
|             gather_future = asyncio.gather(child_coro()) | ||||
|             return asyncio.ensure_future(gather_future) | ||||
|         gather_task = loop.run_until_complete(create()) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Kumar Aditya
						Kumar Aditya