mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Add new utility function, reap_children(), to test_support. This should
be called at the end of each test that spawns children (perhaps it should be called from regrtest instead?). This will hopefully prevent some of the unexplained failures in the buildbots (hppa and alpha) during tests that spawn children. The problems were not reproducible. There were many zombies that remained at the end of several tests. In the worst case, this shouldn't cause any more problems, though it may not help either. Time will tell.
This commit is contained in:
		
							parent
							
								
									10497c83ec
								
							
						
					
					
						commit
						b15ac3169d
					
				
					 14 changed files with 58 additions and 8 deletions
				
			
		|  | @ -1,5 +1,5 @@ | |||
| # Testing select module | ||||
| from test.test_support import verbose | ||||
| from test.test_support import verbose, reap_children | ||||
| import select | ||||
| import os | ||||
| 
 | ||||
|  | @ -65,5 +65,6 @@ def test(): | |||
|             continue | ||||
|         print 'Unexpected return values from select():', rfd, wfd, xfd | ||||
|     p.close() | ||||
|     reap_children() | ||||
| 
 | ||||
| test() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Neal Norwitz
						Neal Norwitz