ยปCore Development>Code coverage>Lib/test/test_tk.py

Python code coverage for Lib/test/test_tk.py

#countcontent
1n/afrom test import support
2n/a# Skip test if _tkinter wasn't built.
3n/asupport.import_module('_tkinter')
4n/a
5n/a# Skip test if tk cannot be initialized.
6n/asupport.requires('gui')
7n/a
8n/afrom tkinter.test import runtktests
9n/a
10n/adef test_main():
11n/a support.run_unittest(
12n/a *runtktests.get_tests(text=False, packages=['test_tkinter']))
13n/a
14n/aif __name__ == '__main__':
15n/a test_main()