mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Fix so that test.test_distutils can be executed by unittest and not just regrtest (GH-13480)
This commit is contained in:
		
							parent
							
								
									8a4cd700a7
								
							
						
					
					
						commit
						997443c14c
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -10,9 +10,15 @@ | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| def test_main(): | def test_main(): | ||||||
|  |     # used by regrtest | ||||||
|     test.support.run_unittest(distutils.tests.test_suite()) |     test.support.run_unittest(distutils.tests.test_suite()) | ||||||
|     test.support.reap_children() |     test.support.reap_children() | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | def load_tests(*_): | ||||||
|  |     # used by unittest | ||||||
|  |     return distutils.tests.test_suite() | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| if __name__ == "__main__": | if __name__ == "__main__": | ||||||
|     test_main() |     test_main() | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Toshio Kuratomi
						Toshio Kuratomi