1from test import support 2from test.support import import_helper 3# Skip test if _tkinter wasn't built. 4import_helper.import_module('_tkinter') 5 6# Skip test if tk cannot be initialized. 7support.requires('gui') 8 9def load_tests(loader, tests, pattern): 10 return loader.discover('tkinter.test.test_tkinter') 11 12 13if __name__ == '__main__': 14 unittest.main() 15