Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: d571dd3c98660298dae371899a0331135e843be2 authored by Larry Hastings on 04 March 2019, 02:09:45 UTC
Version bump & copyright year update for 3.5.7rc1.
Tip revision: d571dd3
__init__.py
'''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".
This package and its contained modules are subject to change and
any direct use is at your own risk.
'''
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
back to top