1 from test import support 2 # Skip test if _tkinter wasn't built. 3 support.import_module('_tkinter') 4 5 # Skip test if tk cannot be initialized. 6 support.requires('gui') 7 8 from tkinter.test import runtktests 9 10 def test_main(): 11 support.run_unittest( 12 *runtktests.get_tests(text=False, packages=['test_tkinter'])) 13 14 if __name__ == '__main__': 15 test_main() 16