blob: 1acd67684ceeb20a00bcc90e460d4262ceca01e8 [file] [log] [blame]
Terry Jan Reedyeb4c9c72013-05-28 22:21:53 -04001# Skip test if _tkinter or _thread wasn't built or idlelib was deleted.
Terry Jan Reedydb4e5c52013-05-27 21:32:03 -04002from test.support import import_module
Terry Jan Reedyeb4c9c72013-05-28 22:21:53 -04003import_module('tkinter')
4import_module('threading') # imported by PyShell, imports _thread
5idletest = import_module('idlelib.idle_test')
Terry Jan Reedydb4e5c52013-05-27 21:32:03 -04006
Terry Jan Reedyeb4c9c72013-05-28 22:21:53 -04007# Without test_main present, regrtest.runtest_inner (line1219) calls
8# unittest.TestLoader().loadTestsFromModule(this_module) which calls
9# load_tests() if it finds it. (Unittest.main does the same.)
10load_tests = idletest.load_tests
Terry Jan Reedydb4e5c52013-05-27 21:32:03 -040011
12if __name__ == '__main__':
13 import unittest
14 unittest.main(verbosity=2, exit=False)