| 
									
										
										
										
											2016-06-04 16:15:58 -04:00
										 |  |  | '''idlelib.idle_test is a private implementation of test.test_idle,
 | 
					
						
							|  |  |  | which tests the IDLE application as part of the stdlib test suite. | 
					
						
							|  |  |  | Run IDLE tests alone with "python -m test.test_idle". | 
					
						
							| 
									
										
										
										
											2016-06-09 21:09:15 -04:00
										 |  |  | Starting with Python 3.6, IDLE requires tcl/tk 8.5 or later. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-04 16:15:58 -04:00
										 |  |  | This package and its contained modules are subject to change and | 
					
						
							|  |  |  | any direct use is at your own risk. | 
					
						
							|  |  |  | '''
 | 
					
						
							| 
									
										
										
										
											2013-05-27 21:32:03 -04:00
										 |  |  | from os.path import dirname | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def load_tests(loader, standard_tests, pattern): | 
					
						
							|  |  |  |     this_dir = dirname(__file__) | 
					
						
							|  |  |  |     top_dir = dirname(dirname(this_dir)) | 
					
						
							|  |  |  |     package_tests = loader.discover(start_dir=this_dir, pattern='test*.py', | 
					
						
							|  |  |  |                                     top_level_dir=top_dir) | 
					
						
							|  |  |  |     standard_tests.addTests(package_tests) | 
					
						
							|  |  |  |     return standard_tests |