mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	Get test to consistently show no leaks
This commit is contained in:
		
							parent
							
								
									88c97845c6
								
							
						
					
					
						commit
						cb0f66f0ab
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -6,10 +6,12 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class CmdLineTest(unittest.TestCase):
 | 
					class CmdLineTest(unittest.TestCase):
 | 
				
			||||||
    def start_python(self, cmd_line):
 | 
					    def start_python(self, cmd_line):
 | 
				
			||||||
        outfp, infp = popen2.popen4('%s %s' % (sys.executable, cmd_line))
 | 
					        inst = popen2.Popen4('%s %s' % (sys.executable, cmd_line))
 | 
				
			||||||
 | 
					        outfp, infp = inst.fromchild, inst.tochild
 | 
				
			||||||
        infp.close()
 | 
					        infp.close()
 | 
				
			||||||
        data = outfp.read()
 | 
					        data = outfp.read()
 | 
				
			||||||
        outfp.close()
 | 
					        outfp.close()
 | 
				
			||||||
 | 
					        inst.wait()
 | 
				
			||||||
        return data
 | 
					        return data
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def exit_code(self, cmd_line):
 | 
					    def exit_code(self, cmd_line):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue