| 1 | n/a | '''idlelib.idle_test is a private implementation of test.test_idle, |
|---|
| 2 | n/a | which tests the IDLE application as part of the stdlib test suite. |
|---|
| 3 | n/a | Run IDLE tests alone with "python -m test.test_idle". |
|---|
| 4 | n/a | Starting with Python 3.6, IDLE requires tcl/tk 8.5 or later. |
|---|
| 5 | n/a | |
|---|
| 6 | n/a | This package and its contained modules are subject to change and |
|---|
| 7 | n/a | any direct use is at your own risk. |
|---|
| 8 | n/a | ''' |
|---|
| 9 | n/a | from os.path import dirname |
|---|
| 10 | n/a | |
|---|
| 11 | n/a | def load_tests(loader, standard_tests, pattern): |
|---|
| 12 | n/a | this_dir = dirname(__file__) |
|---|
| 13 | n/a | top_dir = dirname(dirname(this_dir)) |
|---|
| 14 | n/a | package_tests = loader.discover(start_dir=this_dir, pattern='test*.py', |
|---|
| 15 | n/a | top_level_dir=top_dir) |
|---|
| 16 | n/a | standard_tests.addTests(package_tests) |
|---|
| 17 | n/a | return standard_tests |
|---|