mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	bpo-31067: test_subprocess calls reap_children() (#2931)
test_subprocess now also calls reap_children() in tearDown(), not only on setUp().
This commit is contained in:
		
							parent
							
								
									8e45318b0d
								
							
						
					
					
						commit
						cc42c121eb
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -56,6 +56,8 @@ def tearDown(self): | |||
|             inst.wait() | ||||
|         subprocess._cleanup() | ||||
|         self.assertFalse(subprocess._active, "subprocess._active not empty") | ||||
|         self.doCleanups() | ||||
|         support.reap_children() | ||||
| 
 | ||||
|     def assertStderrEqual(self, stderr, expected, msg=None): | ||||
|         # In a debug build, stuff like "[6580 refs]" is printed to stderr at | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Victor Stinner
						Victor Stinner