source: python/trunk/Lib/test/test_ttk_textonly.py

Last change on this file was 391, checked in by dmik, 11 years ago

python: Merge vendor 2.7.6 to trunk.

  • Property svn:eol-style set to native
File size: 543 bytes
Line 
1import os
2from test import test_support
3
4# Skip this test if _tkinter does not exist.
5test_support.import_module('_tkinter')
6
7this_dir = os.path.dirname(os.path.abspath(__file__))
8lib_tk_test = os.path.abspath(os.path.join(this_dir, '..', 'lib-tk', 'test'))
9
10with test_support.DirsOnSysPath(lib_tk_test):
11 import runtktests
12
13def test_main():
14 with test_support.DirsOnSysPath(lib_tk_test):
15 test_support.run_unittest(
16 *runtktests.get_tests(gui=False, packages=['test_ttk']))
17
18if __name__ == '__main__':
19 test_main()
Note: See TracBrowser for help on using the repository browser.