mirror of
				https://github.com/python/cpython.git
				synced 2025-10-26 11:14:33 +00:00 
			
		
		
		
	skip multiprocessing main handling test when Python is built without threads
This commit is contained in:
		
							parent
							
								
									a960599be5
								
							
						
					
					
						commit
						5255b86fba
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -15,6 +15,8 @@ | ||||||
|     assert_python_ok, assert_python_failure, temp_dir, |     assert_python_ok, assert_python_failure, temp_dir, | ||||||
|     spawn_python, kill_python) |     spawn_python, kill_python) | ||||||
| 
 | 
 | ||||||
|  | # Skip tests if _multiprocessing wasn't built. | ||||||
|  | _multiprocessing = support.import_module('_multiprocessing') | ||||||
| # Look up which start methods are available to test | # Look up which start methods are available to test | ||||||
| import multiprocessing | import multiprocessing | ||||||
| AVAILABLE_START_METHODS = set(multiprocessing.get_all_start_methods()) | AVAILABLE_START_METHODS = set(multiprocessing.get_all_start_methods()) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Christian Heimes
						Christian Heimes