2009-04-01 19:28:47 +08:00
|
|
|
from test import support
|
|
|
|
# Skip test if _tkinter wasn't built.
|
|
|
|
support.import_module('_tkinter')
|
|
|
|
|
2011-07-04 12:56:48 +08:00
|
|
|
# Skip test if tk cannot be initialized.
|
2014-05-02 23:51:07 +08:00
|
|
|
support.requires('gui')
|
2009-02-10 04:40:42 +08:00
|
|
|
|
2011-07-04 12:56:48 +08:00
|
|
|
from tkinter.test import runtktests
|
2009-02-10 04:40:42 +08:00
|
|
|
|
2014-06-03 05:01:29 +08:00
|
|
|
def test_main():
|
2009-02-10 04:40:42 +08:00
|
|
|
support.run_unittest(
|
|
|
|
*runtktests.get_tests(text=False, packages=['test_tkinter']))
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2014-06-03 05:01:29 +08:00
|
|
|
test_main()
|