]>
Commit | Line | Data |
---|---|---|
4710c53d | 1 | import os\r |
2 | from test import test_support\r | |
3 | \r | |
4 | # Skip this test if _tkinter does not exist.\r | |
5 | test_support.import_module('_tkinter')\r | |
6 | \r | |
7 | this_dir = os.path.dirname(os.path.abspath(__file__))\r | |
8 | lib_tk_test = os.path.abspath(os.path.join(this_dir, '..', 'lib-tk', 'test'))\r | |
9 | \r | |
10 | with test_support.DirsOnSysPath(lib_tk_test):\r | |
11 | import runtktests\r | |
12 | \r | |
13 | def test_main():\r | |
14 | with test_support.DirsOnSysPath(lib_tk_test):\r | |
15 | test_support.run_unittest(\r | |
16 | *runtktests.get_tests(gui=False, packages=['test_ttk']))\r | |
17 | \r | |
18 | if __name__ == '__main__':\r | |
19 | test_main()\r |