blob: 59842a5e25e3660c24505ea5c1c230238bc74b29 [file] [log] [blame]
Guilherme Poloa91790a2009-02-09 20:40:42 +00001from test import support
Hai Shia089d212020-07-06 17:15:08 +08002from test.support import import_helper
R. David Murraya21e4ca2009-03-31 23:16:50 +00003# Skip test if _tkinter wasn't built.
Hai Shia089d212020-07-06 17:15:08 +08004import_helper.import_module('_tkinter')
R. David Murraya21e4ca2009-03-31 23:16:50 +00005
Ned Deily41435352011-07-03 21:56:48 -07006# Skip test if tk cannot be initialized.
Zachary Warececed6b2014-05-02 10:51:07 -05007support.requires('gui')
Kristján Valur Jónsson42a40c52009-04-01 11:28:47 +00008
Ned Deily41435352011-07-03 21:56:48 -07009from tkinter.test import runtktests
Guilherme Poloa91790a2009-02-09 20:40:42 +000010
Zachary Ware66f29282014-06-02 16:01:29 -050011def test_main():
Guilherme Poloa91790a2009-02-09 20:40:42 +000012 support.run_unittest(
13 *runtktests.get_tests(text=False, packages=['test_tkinter']))
14
15if __name__ == '__main__':
Zachary Ware66f29282014-06-02 16:01:29 -050016 test_main()