blob: 62729f0f32495418891bfdc4fa683176741d9b93 [file] [log] [blame]
Guilherme Poloa91790a2009-02-09 20:40:42 +00001from test import support
R. David Murraya21e4ca2009-03-31 23:16:50 +00002# Skip test if _tkinter wasn't built.
3support.import_module('_tkinter')
4
Terry Jan Reedy743c85a2013-03-16 02:37:06 -04005# Make sure tkinter._fix runs to set up the environment
6support.import_fresh_module('tkinter')
7
Ned Deily41435352011-07-03 21:56:48 -07008# Skip test if tk cannot be initialized.
Zachary Warececed6b2014-05-02 10:51:07 -05009support.requires('gui')
Kristján Valur Jónsson42a40c52009-04-01 11:28:47 +000010
Ned Deily41435352011-07-03 21:56:48 -070011from tkinter.test import runtktests
Guilherme Poloa91790a2009-02-09 20:40:42 +000012
Zachary Ware66f29282014-06-02 16:01:29 -050013def test_main():
Guilherme Poloa91790a2009-02-09 20:40:42 +000014 support.run_unittest(
15 *runtktests.get_tests(text=False, packages=['test_tkinter']))
16
17if __name__ == '__main__':
Zachary Ware66f29282014-06-02 16:01:29 -050018 test_main()