mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 19:34:08 +00:00 
			
		
		
		
	Adds `load_package_tests` function to test.support, uses it in test_asyncio, test_email, test_json, test_tools, test_importlib and all test_importlib sub-packages to implement test discovery.
		
			
				
	
	
		
			10 lines
		
	
	
	
		
			312 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
	
		
			312 B
		
	
	
	
		
			Python
		
	
	
	
	
	
import os
 | 
						|
from test.support import load_package_tests, import_module
 | 
						|
 | 
						|
# Skip tests if we don't have threading.
 | 
						|
import_module('threading')
 | 
						|
# Skip tests if we don't have concurrent.futures.
 | 
						|
import_module('concurrent.futures')
 | 
						|
 | 
						|
def load_tests(*args):
 | 
						|
    return load_package_tests(os.path.dirname(__file__), *args)
 |