mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 11:49:12 +00:00 
			
		
		
		
	Merge 3.4 (Issue #23630, fix test_asyncio)
This commit is contained in:
		
						commit
						e355604447
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -764,6 +764,7 @@ class EventLoopTestsMixin:
 | 
				
			||||||
                                                            for host in hosts]
 | 
					                                                            for host in hosts]
 | 
				
			||||||
        self.loop.getaddrinfo = getaddrinfo_task
 | 
					        self.loop.getaddrinfo = getaddrinfo_task
 | 
				
			||||||
        self.loop._start_serving = mock.Mock()
 | 
					        self.loop._start_serving = mock.Mock()
 | 
				
			||||||
 | 
					        self.loop._stop_serving = mock.Mock()
 | 
				
			||||||
        f = self.loop.create_server(lambda: MyProto(self.loop), hosts, 80)
 | 
					        f = self.loop.create_server(lambda: MyProto(self.loop), hosts, 80)
 | 
				
			||||||
        server = self.loop.run_until_complete(f)
 | 
					        server = self.loop.run_until_complete(f)
 | 
				
			||||||
        self.addCleanup(server.close)
 | 
					        self.addCleanup(server.close)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue