__init__.py 712 B

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