diff options
Diffstat (limited to 'Lib/test/test_ttk_guionly.py')
-rw-r--r-- | Lib/test/test_ttk_guionly.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_ttk_guionly.py b/Lib/test/test_ttk_guionly.py index bff4fc1..b8c1a4c 100644 --- a/Lib/test/test_ttk_guionly.py +++ b/Lib/test/test_ttk_guionly.py @@ -5,6 +5,10 @@ from test import support # Skip this test if _tkinter wasn't built. support.import_module('_tkinter') +# Skip test if tk cannot be initialized. +from tkinter.test.support import check_tk_availability +check_tk_availability() + from _tkinter import TclError from tkinter import ttk from tkinter.test import runtktests |