move sections
[python/dscho.git] / Lib / test / test_ttk_textonly.py
blobed92043d7bfe34632c7516d66ccf633740caa93d
1 import os
2 from test import test_support
4 # Skip this test if _tkinter does not exist.
5 test_support.import_module('_tkinter')
7 this_dir = os.path.dirname(os.path.abspath(__file__))
8 lib_tk_test = os.path.abspath(os.path.join(this_dir, '..', 'lib-tk', 'test'))
10 with test_support.DirsOnSysPath(lib_tk_test):
11 import runtktests
13 def test_main():
14 with test_support.DirsOnSysPath(lib_tk_test):
15 test_support.run_unittest(
16 *runtktests.get_tests(gui=False, packages=['test_ttk']))
18 if __name__ == '__main__':
19 test_main()