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