Coverage for idle_test/__init__.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.2.5, created at 2023-05-11 13:22 -0700

1'''idlelib.idle_test is a private implementation of test.test_idle, 

2which tests the IDLE application as part of the stdlib test suite. 

3Run IDLE tests alone with "python -m test.test_idle". 

4Starting with Python 3.6, IDLE requires tcl/tk 8.5 or later. 

5 

6This package and its contained modules are subject to change and 

7any direct use is at your own risk. 

8''' 

9from os.path import dirname 

10 

11def load_tests(loader, standard_tests, pattern): 

12 this_dir = dirname(__file__) 

13 top_dir = dirname(dirname(this_dir)) 

14 package_tests = loader.discover(start_dir=this_dir, pattern='test*.py', 

15 top_level_dir=top_dir) 

16 standard_tests.addTests(package_tests) 

17 return standard_tests