2009-01-28 09:09:03 -04:00
|
|
|
import os
|
|
|
|
from test import test_support
|
|
|
|
|
2009-03-31 15:32:17 -03:00
|
|
|
# Skip this test if _tkinter does not exist.
|
|
|
|
test_support.import_module('_tkinter')
|
|
|
|
|
2009-01-28 09:09:03 -04:00
|
|
|
this_dir = os.path.dirname(os.path.abspath(__file__))
|
|
|
|
lib_tk_test = os.path.abspath(os.path.join(this_dir, '..', 'lib-tk', 'test'))
|
|
|
|
|
2009-10-17 11:40:54 -03:00
|
|
|
with test_support.DirsOnSysPath(lib_tk_test):
|
|
|
|
import runtktests
|
2009-01-28 09:09:03 -04:00
|
|
|
|
|
|
|
def test_main():
|
2009-10-17 11:40:54 -03:00
|
|
|
with test_support.DirsOnSysPath(lib_tk_test):
|
|
|
|
test_support.run_unittest(
|
2009-01-28 15:28:04 -04:00
|
|
|
*runtktests.get_tests(gui=False, packages=['test_ttk']))
|
2009-01-28 09:09:03 -04:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
test_main()
|