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