diff options
Diffstat (limited to 'Lib/test/test_tk.py')
| -rw-r--r-- | Lib/test/test_tk.py | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/Lib/test/test_tk.py b/Lib/test/test_tk.py index 7551a7f..62729f0 100644 --- a/Lib/test/test_tk.py +++ b/Lib/test/test_tk.py @@ -6,20 +6,13 @@ support.import_module('_tkinter') support.import_fresh_module('tkinter') # Skip test if tk cannot be initialized. -from tkinter.test.support import check_tk_availability -check_tk_availability() +support.requires('gui') from tkinter.test import runtktests -def test_main(enable_gui=False): - if enable_gui: - if support.use_resources is None: - support.use_resources = ['gui'] - elif 'gui' not in support.use_resources: - support.use_resources.append('gui') - +def test_main(): support.run_unittest( *runtktests.get_tests(text=False, packages=['test_tkinter'])) if __name__ == '__main__': - test_main(enable_gui=True) + test_main() |
